netbeans-8

Using NetBeans 8 but getting below compilation error for Lambda expression

六月ゝ 毕业季﹏ 提交于 2019-11-28 07:40:45
问题 I am using NetBeans 8. When my code contains a Lambda expression and I try to compile, I get the following error message: lambda expression not expected here lambda expressions are not supported in -source 1.5 (use -source 8 or higher to enable lambda expressions) ---- (Alt-Enter shows hints) 回答1: Change compiler version of your source code into your project properties to jdk 8 and firstly check whether you have installed one. 回答2: Please click right from you project -> Properties -> Choose

Encrypting a large file with AES using JAVA

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 00:55:58
问题 I've tested my code with files less than this(10mb, 100mb, 500mb) and the encryption works. However, I run in to problems with files greater than 1gb. I've generated a large file (about 2gb) and I want to encrypt it with AES using JAVA, but I'm running into this error: "Exception in thread "main" java.lang.OutOfMemoryError: Java heap space" I've tried increasing available memory by using -Xmx8G, but no dice. Part of my code is as follows File selectedFile = new File("Z:\\dummy.txt"); Path

Include a library while programming & compiling, but exclude from build, in NetBeans Maven-based project

情到浓时终转凉″ 提交于 2019-11-27 19:39:17
问题 In NetBeans 8, in a Maven-based project, how does one use a jar while programming but omit from build? I need to access some specific classes in a specific JDBC driver in my Vaadin web app. But in web apps, we normally do not bundle JDBC drivers within our build (the .war file). Instead, the JDBC drivers belong in a folder controlled by the Servlet container (the runtime environment). So, I need the JDBC driver (a jar file) to be on the classpath while I am editing my code and compiling. But

JavaFX8 - sun.util.logging.PlatformLogger not found Exception in NetBeans 8

戏子无情 提交于 2019-11-27 12:45:57
问题 I have recently installed JDK8 + Netbeans8 (downloaded the bundled setup from Oracle site) on my Windows 8.1 machine. When I create a very simple JavaFX FXML application, it works fine. However when I add a new database entity class using the wizard and compile it, I get following stack trace: Note: Creating non-static metadata factory ... error: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for sun.util.logging.PlatformLogger not found An annotation processor threw an

get text from dynamically added jPanel

房东的猫 提交于 2019-11-27 08:44:00
问题 I am adding dynamically subPanel to jPanel1 (with jTextField and jButton ). Some of part code was borrowed from there. I am trying to get text from components of jPanel1 , but cannot succeed. EDITED: This is a subPanel that contains jTextField , +Button and -Button . private class subPanel extends javax.swing.JPanel { subPanel me; public subPanel() { super(); me = this; JTextField myLabel = new JTextField(15); add(myLabel); JButton myButtonRemove = new JButton("-"); JButton myButtonAdd = new

'cmd' is not recognized as an internal or external command, operable program or batch file

拜拜、爱过 提交于 2019-11-27 08:20:22
问题 When I build my project in netbeans me it shows: 'cmd' is not recognized as an internal or external command, operable program or batch file.` I'm using jdk 8 and maven 3.3. My path system variable is: %SystemRoot%\system32;%SystemRoot%;D:\POS\apache-maven-3.3.3-bin\apache-maven-3.3.3\bin; 回答1: So far I understand this is not your IDE issue.Check your "system32" is correctly defined in the PATH environment variable . Path = %SystemRoot%\system32; 回答2: you can get it worked in anyone of below

How to integrate codeIgniter with netbeans fully

泪湿孤枕 提交于 2019-11-27 04:15:42
I downloaded Netbeans and CodeIgniter, and I downloaded 2 plugins for Netbeans. On of them is called "PHP CI Framework" and I can't install it. When I try to install it I get this message: The plugin php apis is requested in implementation version 201107282000. The following plugin is effected: PHP CI Framework What other plugin do I need to install for CI to be fully integrated so that I will have full Intellisense and documentation support in Netbeans? Rooneyl If you just want auto-complete of functions then this will do it for you. 1) Create a folder in Netbeans called ' autocomplete ' in '

WebService Client Generation Error with JDK8

霸气de小男生 提交于 2019-11-26 21:14:31
I need to consume a web service in my project. I use NetBeans so I right-clicked on my project and tried to add a new "Web Service Client". Last time I checked, this was the way to create a web service client. But it resulted in an AssertionError, saying: java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/path/to/glassfish/modules/jaxb-osgi.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference: Failed to read schema document ' xjc.xsd ', because 'file' access is not allowed due to restriction set by the

ArrayIndexOutOfBoundsException when launching a java program

允我心安 提交于 2019-11-26 18:38:51
问题 I am currently working on an assignment but there seems to be a problem when running my code. public class caesar { public static void main(String args[]) { String inputString = args[0]; char inputArray[] = inputString.toCharArray(); int shiftLength = Integer.parseInt(args[1]); System.out.println("Input: " + inputString); String outputString = ""; This is the error I am receiving: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at caesar.main(caesar.java:3) 回答1: You are

How to integrate codeIgniter with netbeans fully

荒凉一梦 提交于 2019-11-26 11:07:13
问题 I downloaded Netbeans and CodeIgniter, and I downloaded 2 plugins for Netbeans. On of them is called \"PHP CI Framework\" and I can\'t install it. When I try to install it I get this message: The plugin php apis is requested in implementation version 201107282000. The following plugin is effected: PHP CI Framework What other plugin do I need to install for CI to be fully integrated so that I will have full Intellisense and documentation support in Netbeans? 回答1: If you just want auto-complete