JDK was not found on the computer for NetBeans 6.5

前端 未结 20 1892
执笔经年
执笔经年 2020-11-30 03:55

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?

相关标签:
20条回答
  • 2020-11-30 04:36

    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.

    0 讨论(0)
  • 2020-11-30 04:37

    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.

    0 讨论(0)
  • 2020-11-30 04:37

    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.
    0 讨论(0)
  • 2020-11-30 04:38

    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

    0 讨论(0)
  • 2020-11-30 04:39

    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"

    1. at first, the setup of NetBeans must be saved on your hard disk
    2. go to the place where your setup is, click properties and copy the path.
    3. Add two back slashes in it and put it in double quotes like so: "C:\Program Files (x86)\netbeans-8.0.2-windows.exe"
    4. 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"
    5. then just follow the format of the first link given and you'll install it

    Note: run this link in the command prompt

    0 讨论(0)
  • 2020-11-30 04:40

    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"
    
    0 讨论(0)
提交回复
热议问题