JDK was not found on the computer for NetBeans 6.5

前端 未结 20 1890
执笔经年
执笔经年 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:26

    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.

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

    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"

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

    I have same problem, and solve by this way:

    1. Open CMD
    2. Go to file netbeans.exe
    3. Press Shift Key + Right Click and copy as path Copy as path
    4. Paste on CMD look like C:\Users\unnamed>"C:\Users\unnamed\Downloads\Programs\netbeans-8.2-windows.exe"
    5. Write --javahome do same point 2 on JDK folder
    6. 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"

    7. Enter. Enjoy it.

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

    I was facing the same problem, not it works fine.

    1. just open cmd

    2. cd to the directory where your netbeans setup file is located.

    3. in cmd, write the name of the entire setup file and write --javahome "address of jdk"

    4. 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! :-)

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

    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

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

    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.

    0 讨论(0)
提交回复
热议问题