Latest Questions tagged Netbeans

Browse all latest questions tagged Netbeans

85
Votes
Published 19 Sep, 2022
Java - Hibernate java.lang.ExceptionInInitializerError

I've been working through the Hibernate Tutorial provided by Netbeans but whenever I tried running the program I end up with a java.lang.ExceptionInInitializerError. Anyone have any ideas about what's...

21
Votes
Published 03 Sep, 2022
Java - Comment/uncomment a block of code in NetBeans shortcut

Is there a shortcut in NetBeans to highlight a block of code and comment/uncomment it?

56
Votes
Published 15 Sep, 2022
Java - SEVERE: Allocate exception for servlet <myservlet-name> java.lang.ClassNotFoundException: <myservlet> exception

When I use the following web.xml, my project runs fine and I can see "Hello World" getting displayed via index.jsp page. I am using Netbeans 7.4 and Apache tomcat 6.0.41 &lt;?xml version="1.0" encodi...

86
Votes
Published 14 Sep, 2022
Java - Error in COMM API Installation: nblibraries.properties file doesn't exist

I'm trying to run this sample code which is querying available com ports from here: http://www.java2s.com/Code/Java/Development-Class/QueryingAvailableCOMPorts.htm // Install the Java Comm API first....

35
Votes
Published 07 Sep, 2022
Java - How to view the current heap size that an application is using?

I think I increased my heap size to 1 GB in NetBeans since I changed the config to look like this: netbeans_default_options="-J-Xmx1g ...... After I restarted NetBeans, can I be sure that my app is...

29
Votes
Published 19 Sep, 2022
Java - Package 'au.com.bytecode' does not exist (OpenCSV)

Like the title says. What am I doing wrong? I am using Netbeans, and I created a folder for my 3rd party libraries, right-clicked the Package, navigated: Properties &gt; Libraries &gt; Add JAR/Folder...

58
Votes
Published 16 Sep, 2022
Java - How to convert Java source code to Byte Code?

My IDE is Netbeans. My professor asks me to submit the homework in both source code (.java files) and byte code. But I don't know how to convert my source code to byte code. I searched it on google bu...

99
Votes
Published 15 Sep, 2022
Java - Apache Derby - java.sql.SQLException: Failed to start database

First, this is my first time with Apache Derby. I am using netbeans, willing to use embedded apache derby, and I followed the following tutorial for configuring and installing the database. Then, I at...

38
Votes
Published 15 Sep, 2022
Java - Java - How to show Soap Fault

I have this kind of response when having a Soap Fault calling a Java Web Service &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;soap:Body&gt; &lt;soap:Fa...

10
Votes
Published 25 Aug, 2022
Java - java - duplicate class

Confused as to why I get duplicate class error for the following code? /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package database_console; im...

52
Votes
Published 03 Aug, 2022
Jquery - Java Ajax request parameters have null value

I'm trying to make a simple ajax request using Java (JSP + Servlet) and Ajax (jQuery). The Ajax request is working as expected, and the servlet code is reached. The problem is that I can't get the va...

8
Votes
Published 13 Sep, 2022
Java - var keyword not reconized in JDK 10

I have installed netbeans (Apache version) with JDK 10 successfully, but can't use var keyword in my project, It keep saying cannot find symbol. Any help would be appreciated.

69
Votes
Published 13 Sep, 2022
Java - Netbeans is not getting installed in my Mac, it says JDK not found, though JDK is installed in the same

Error: Failure while executing the commands mentioned below:- /usr/bin/sudo -E -- env LOGNAME=ajaygautam USER=ajaygautam USERNAME=ajaygautam /usr/sbin/installer -pkg /usr/local/Caskroom/netbeans/8.2/...

103
Votes
Published 13 Sep, 2022
Java - JList adding and removing items (Netbeans)

I'm trying to add and remove items from my jList (jList1), but It doesn't work. I've searched on stackoverflow for other people with the same problem, but when their problem is solved, I keep getting...

58
Votes
Published 12 Sep, 2022
Java - How to UnFocus a JTextField

When my application loads, which is made using netbeans, the first JTextField is automatically focused, and in this JTextField, I have written "Enter your Username", it will go away when the user clic...