I got the following message when I open the NetBeans. I have got the JDK installed, and set the bin directory in the environment. What I could do next to avoid this problem? Btw, I am using Windows 7 64 bit.
This question is related to
netbeans
java
netbeans6.5
Do the following steps to resolve the problem
Ensure that the JDK is already installed.
If the installer is on a CD, Copy the EXE file for the Netbeans 6.5.1 installer onto your hard disk.
Note the location of the installer.
Open a Command Prompt running as administrator: Go to Start button > All Programs > Accessories Right click Command Prompt Select Run as administrator
In the Command Prompt use the cd command to change to the directory containing the installer.
Execute the following command to extract the contents of the installer: [Note: You might need to change the name of the installer to match the one you have.]
netbeans-6.5.1-ml-java-windows.exe --extract
Execute the following command to manually execute the installer:
java -jar bundle.jar
You will see rapid scrolling output in the Command Prompt window for a few moments, then the installer window will appear to begin the installation process.
I was facing the same problem, not it works fine.
just open cmd
cd to the directory where your netbeans setup file is located.
in cmd, write the name of the entire setup file and write --javahome "address of jdk"
hit enter, it will surely solve your problem
for example, if the setup file is: netbeans8.02.exe
and path of JDK is C:/program files/java/jdk9.01
then run the command,
netbeans8.02.exe --javahome "C:/program files/java/jdk9.01"
and hit enter! :-)
You just simply needs to add JAVA_HOME environment variable and provide the complete path of the latest JDK folder on your computer.
Re launch the installer and it would work.
Set JAVA_HOME and PATH, Open Command line with admin rights, Run in command line >>netbeans-6.5.1-ml-windows.exe --extract, Run in command line >>java -jar bundle.jar
I have got the JDK installed
You haven't specified the version. I think it is not 6 nor 5.
JDK 6 was the latest version at time of NetBeans 6.0 - 6.9 are developed. For that reason, They require JDK 6 (or JDK 5) and do not run on JDK 7 or later.
What I have found, the correct way of doing it is: "C:\Program Files (x86)\netbeans-8.0.2-windows.exe" --javahome "C:\Program Files(x86)\Java\jdk1.7.0_51"
Note: run this link in the command prompt
go to cmd and enter the following command:
C:\Users{usernamehere}\Documents\Downloads\netbeans-{version}.exe –-javahome "C:\Program Files (x86)\Java\jdk{version}"
before it make sure you have properly set the environment variable. If it is not works than check compatibility of program or reinstall jdk appropriately and set environment again and do as above command.
When this type of problem occurs simply delete previous path setting and add new path in Environment variable.
new path name JAVA_HOME path "Your computer path" without \bin
and also edit path variable with \bin path.
netbeans will working fine whatever the version is.either jdk 9 or upper version.
I would first double-check that you installed the JDK, rather than just the JRE. It's easy to grab the wrong one and not even realize it. Then I'd make sure that your JAVA_HOME environment variable is pointing to your JDK install directory, NOT the bin directory. You may want to add the bin directory to the PATH environment variable, but Netbeans is more likely looking at the JAVA_HOME environment variable.
From the commnand prompt execute the following two commands:
netbeans-6.5.1-windows.exe –extract
//two dashes before extract
java -jar bundle.jar
The first one extracts the installer from the exe while the other executes the installer.
according to this link:http://fuzz-box.blogspot.com/2011/05/netbeans-65-jdk-not-found.html
I face the same problem while installing the NetBeans but I did the installation part properly simply you have do is 1-> GO and download the JRE file of java link -> https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
2-> After installing the JRE kindly go to directory where you have install the JRE 3-> And copy all the file of from the JRE folder 4-> And paste in the jdk folder but 5-> while copying the file make sure you replace-and-copy the file while any prompt pop out
6-> Then open the command prompt(cmd) and simply type 7->netbeans-8.2-windows.exe --javahome "path-of-your-jdk-file"
I have same problem, and solve by this way:
Write on cmd look like C:\Users\unnamed>"C:\Users\unnamed\Downloads\Programs\netbeans-8.2-windows.exe" --javahome "C:\Program Files\Java\jdk-9.0.4"
Enter. Enjoy it.
You have to either provide JAVA_HOME
environment variable which points to the JDK
location or as it says, you can run the installer from the command line passing JDK
address through its -javahome
argument like this:
C:> <NetBeans_Installer_Name> -javahome <JDK-PATH>
You must also make sure that your installed JDK is the Windows 64-bit version of the program. This is the download link for JDK6U37: http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-windows-x64.exe
For netbeans 8.2
1. First run command as administrator.
2. set path to you downloads folder using cd 'location to the downloads folder'
3. extract using netbeans-8.2-windows.exe --extract command
4. run java -jar bundle.jar
5. Done :)
This is still an issue when installing NetBeans 8.0. To install it, first confirm that JDK is installed correctly. On my machine, it was located in C:\Program Files\Java\jdk1.8.0_11
Then, I was able to install NetBeans 8.0 by restarting my computer in Safe Mode With Networking. When running the NetBeans exe installation file in Safe Mode With Networking, it will prompt you to confirm the location of the Java JDK directory.
write in the command prompt
C:>netbeans8.2-windows.exe -javahome"path of your jdk" -jrehome"path of your jre"
netbeans version may be different so type that name i.e. if you have netbeans 6.5
, then write netbeans6.5
instead of 8.2
.
I got this Error today while installing latest Java 10.0.1 ( downloaded JDK in official oracle website) and also downloaded NetBeans version 8.2.
My JDK installation went as smooth as Cake.
But the problem is in Netbeans installation. When I tried to install Netbeans, the error message showed was: "JDK was not installed on your system. Try using Javahome installer argument". But nothing helped me.
Solution:
Source: Stackoverflow.com