I want to make Java Desktop Application but Netbeans 6.9.1 is not working on windows 8.1 (it crashes on double click to run). I have installed JDK8 along with Jre7 (both 32 and 64 bit). How to make it run, Netbeans 8 is working properly.
Netbeans 6.9.1 is not working on windows 8.1
You must have JDK 6.0 on your system to install and run NetBeans IDE 6.9.1.
Source NetBeans IDE 6.9.1 Release Notes.
To make Netbeans run on JDK 6, if you have more than one JDK do this:
You can change the JDK for Netbeans by modifying the config file:
Open netbeans.conf file available under etc folder inside the NetBeans
installation. Modify the netbeans_jdkhome variable to point to new JDK
path, and then Restart your Netbeans.
Sample
# Default location of JDK, can be overridden by using --jdkhome <dir>:
#netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_45"
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_45"
mainly the problem is that your netbeans and jdk are not compatible. you should download lastest jdk 8 and netbeans which you can from here.
DONT FORGET TO SET PATH.
I got a Solution
You must have JDK 6.0 on your system.
Then SET PATH at time of installation to JDK 6.0 .
Related
I installed Java NetBeans IDE 12.0 and JDk-16. When I try to create a project using Java With Ant, it get stuck like in the screenshot. When I cancel it, it creates the file but no code in it i.e., no main method is created. Just a blank file.
Does anyone know how to solve this?
From the NetBeans documentation for "Deployment Platforms" for NetBeans 12.0:
Apache NetBeans 12.0 runs on the JDK LTS releases 8 and 11, as well as
on JDK 14, i.e., the current JDK release at the time of this NetBeans
release.
NetBeans may work (or appear to work) with newer JDK releases that are not officially supported such as JDK 16, but you run the risk of hitting unexpected problems.
So if you don't need any Java features released after JDK 14, download and install JDK 14, and add it as a Java platform in NetBeans, using Tools > Java Platforms > Add Platform.... You don't need to uninstall JDK 16.
However, if you really need JDK 16 features then use a different IDE. The latest release of Eclipse, 2021-03, explicitly supports JDK 16.
I had the same problem and was able to solve it in windows by following the steps below:
Uninstall Netbeans 12.4. Make sure to delete all the cache files
(Drive:\users\user\AppData\Roaming\Netbeans and
Drive:\users\user\AppData\Local\Netbeans) (Windows)
Check your JDK 16 directory (no JRE) and environment variables JAVA_HOME, CLASSPATH and PATH.
Install Netbeans 12.4
Create new project and check that you select Download and activate nb-javac.
For me it helped using NetBeans version 12.5 and the JDK 14. After that everything was running smooth.
I had the same problem and upgrading to version 12.5 worked for me.
Is it true that just JDK version 7 could be used to install NetBeans IDE 8.0.2?
On my device, I have been installed the last version of JDK, but while I am installing Netbeans, a message appeared to tell that I have to install JDK. In other words, Netbeans didn't recognize that there is already a JDK and successfully installed !!
NetBeans 8.0 runs just fine with Java 8.
If NetBeans doesn't detect or find your JDK, you can always provide the location on the command line when starting NetBeans, e.g.:
netbeans64.exe --jdkhome c:\Java8
I have never used the NetBeans installer, but I think you can pass that parameter to the installer as well.
Once, installed, you can also edit conf/netbeans.conf and un-comment the line #netbeans_jdkhome="/path/to/jdk" and make it point to your JDK:
netbeans_jdkhome="c:\Java8"
The Java SE Development Kit (JDK) 7 Update 10 (or later) or JDK 8 is required to install NetBeans IDE.
As seen on NetBeans 8.0.2 Installation Instructions it seems you really have to be on JDK 7 or 8.
While installing one of those versions, remind yourself to set the PATH variable.
When I try to install NetBeans 8.0.2 on my PC (Win10-64bit) I get the error message:
despite that I already installed JDK 9.0.1, as evident in the command prompt:
My path variables are set as follows:
AFAIK Netbeans which supports JDK 9 is yet to release (i.e, Netbeans 9.0 which is in development mode).
And the documentation states this.
By: jkovalsky, 09 Oct 2017
If you have downloaded JDK 9 recently and try to convince your NetBeans 8.2 IDE to run on top of it we will probably disappoint you, because 8.2 version is not designed to work with JDK 9.
In order to use JDK 9 happily you will need to download a NetBeans 9.0 development build from Apache Incubator. For more information please read Geertjan Wielenga's post on Using Apache NetBeans IDE.
Thank you!
NetBeans team
I've also faced the same issue with Netbeans 8.2 (but you're trying with Netbeans 8.0.2). So, I installed JDK 8 and the Netbeans installation went fine.
Still if you want to use JDK 9 you can install it alongside with JDK 8. But you need to set JDK path as JDK 8 in the system path (like you did for JDK 9). While installing Netbeans select JDK 8 installation path as JDK for Netbeans.
I hope it'll be helpful.
As mentioned, you are getting error when trying to install NetBeans, in that case you can specify the JDK at command line
<netbeans_installer>.exe --javahome "C:\Program Files\Java\jdk1.9.0"
FaqSuitableJvmNotFound
I am using Eclipse Luna on Mac Maverick.
I have downloaded GlassFish and extract it.
I have downloaded the Glassfish toolkit from the marketplace.
I am using Eclipse EE.
JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin
When I try to define a new server, why isn't glassfish showing up as an option? What have I missed?
The problem is actually Eclipse. JDK 7 only works with Eclipse EE in 64 bits version. So, basically if want to make glassfish an available server: you need to:
Use Eclipse EE 64 bits version
Use JDK-7
Make sure your JAVA_HOME is set/updated
(In Mac, it usually sits under /Library/Java/JavaVirtualMachines/)
In Eclipse marketplace, download and install Glassfish-toolkit
(and restart the IDE of course)
Make sure your Eclipse EE/Project is using the correct JDK
(Preference -> Java -> Installed JREs)
I've a problem with the application installers generated by Netbeans. I have a Netbeans application project with one module. The Java target platform is set to 1.7. The development system is Netbeans 8.0.1 on Mac OS. I generate the installers with "Package as" => "Installers".
When i try to run the installer on an Ubuntu with JRE 1.7 installed it fails with an UnsupportetClassVersionError. When I run the ZIP-packaged application it works fine.
It seems that the class version of the installer is not compatible to 1.7.
So, my question is: Is there any way to configure the Java version of the installer itself?
Try to run NetBeans using JDK 1.7. See the file NetBeans 8.0.1/etc/netbeans.conf - there is a property netbeans_jdkhome - change it to point to a JDK 1.7 home and restart NetBeans IDE.