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.
I use the following steps to solve the problem:
First, Make sure
“Run this program in compatibality mode for: Windows XP (Service Pack 3)” and “Run this program as an administrator” are ENABLED.
Run in Command Prompt
C:\Users\{yourusernamehere}\Documents\Downloads\netbeans-6.5-ml-windows.exe –-javahome "C:\Program Files (x86)\Java\jdk1.6.0_18"
java -version
in the command line to make sure you are using the 64-bit version. –
Tieshatieup 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 use the following steps to solve the problem:
First, Make sure
“Run this program in compatibality mode for: Windows XP (Service Pack 3)” and “Run this program as an administrator” are ENABLED.
Run in Command Prompt
C:\Users\{yourusernamehere}\Documents\Downloads\netbeans-6.5-ml-windows.exe –-javahome "C:\Program Files (x86)\Java\jdk1.6.0_18"
java -version
in the command line to make sure you are using the 64-bit version. –
Tieshatieup 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.
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! :-)
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.
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 :)
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 have same problem, and solve by this way:
- Open CMD
- Go to file netbeans.exe
- Press Shift Key + Right Click and copy as path Copy as path
- Paste on CMD look like C:\Users\unnamed>"C:\Users\unnamed\Downloads\Programs\netbeans-8.2-windows.exe"
- Write --javahome do same point 2 on JDK folder
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.
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
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
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.
- Go to net beans folder where you have installed it.
- Right click uninstall icon and select properties
- select the compatibility tab and click the check box "Run this program in compatibility mode"
- Apply changes
- From command prompt, run the following command : >uninstall.exe -javahome C:\YOUR_JRE_LOCATION
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
.
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.
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:
- Download JRE alone from their website.
- Move your NetBeans installer to local drives other than c.
- Install JRE by clicking the exe file.
- Set JAVA_HOME, PATH in environment variables.
- Install NetBeans now.
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"
For Netbeans 9.0
1)open netbeans.conf file using notepad inside etc folder
2)Search "netbeans_jdkhome" line and uncomment it by removing '#' from start
3)locate your jdk and replace file path
For example
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"
- at first, the setup of NetBeans must be saved on your hard disk
- go to the place where your setup is, click properties and copy the path.
- Add two back slashes in it and put it in double quotes like so: "C:\Program Files (x86)\netbeans-8.0.2-windows.exe"
- then go to the folder where your jdk is, click properties, copy the path, put double back slashes where necessary and then put it in double quotes: "C:\Program Files(x86)\Java\jdk1.7.0_51"
- then just follow the format of the first link given and you'll install it
Note: run this link in the command prompt
© 2022 - 2024 — McMap. All rights reserved.
C:\Programs\java\jdk-XX.X.X\bin
is not the JAVA_HOME, instead omitbin
and it isC:\Programs\java\jdk-XX.X.X\
– Hartsell