简体   繁体   English

使用JDK 1.6安装NetBeans 6.7.1

[英]Installing NetBeans 6.7.1 with JDK 1.6

I need to install JDK 1.6.14 in order to install NetBeans 6.7.1. 我需要安装JDK 1.6.14才能安装NetBeans 6.7.1。

I uninstalled from control panel JDK 1.8.77 but in cmd for "java -version" i have always 1.8.0.77 我从控制面板JDK 1.8.77卸载但在cmd中为“java -version”我总是1.8.0.77

How can I uninstall all the version of Java (Control Panel is not enough) or how i can install NetBeans 6.7.1? 如何卸载所有版本的Java(控制面板是不够的)或如何安装NetBeans 6.7.1?

I tried with ' netbeans-6.7.1-ml-java-windows.exe --javahome "C:\\Program Files\\Java\\jdk1.6.0_14" ' in cmd but doesn't work 我尝试在cmd中使用'netbeans-6.7.1-ml-java-windows.exe --javahome“C:\\ Program Files \\ Java \\ jdk1.6.0_14”'但是不起作用

If you are getting Java version as 8 even after uninstalling JDK 8 and installing JDK 6 you need to disable the java.exe file of Java 8 version. 如果在卸载JDK 8并安装JDK 6后仍然将Java版本设置为8,则需要禁用Java 8版本的java.exe文件。 In order to do that follow the below steps. 为此,请按照以下步骤操作。

  1. Go to C:\\WINDOWS\\system32\\ directory and find out java.exe 转到C:\\WINDOWS\\system32\\目录并找出java.exe
  2. Rename that java.exe file to java_rename.exe 将该java.exe文件重命名为java_rename.exe
  3. Then install JDK 6 and set the JDK path in Environment Variables. 然后安装JDK 6并在Environment Variables中设置JDK路径。 (if it's already installed it's OK). (如果它已经安装好了)。
  4. Restart your computer to take effect path settings. 重新启动计算机以使路径设置生效。
  5. Now open terminal/command prompt and type java -version . 现在打开terminal / command提示符并输入java -version This command will show you Java version as 6. 此命令将向您显示Java版本为6。

Hope this will be helpful for you. 希望这对你有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM