I just had Valentine's Day yesterday! Haha, long time no record of learning content, today in the House idle nothing to reinstall JDK, according to the reason is very simple;
The first step is to download the JDK;
The second step is to install the fool.
The third step is to configure the environment variables (below the corresponding changes according to your own installation path)
A.java_home: "D:\Program files\java\jdk1.6.0_37;" ;
B.path: ";D: \program Files\java\jdk1.6.0_37\bin;d:\program Files\java\jdk1.6.0_37\jre\bin;";
C.classpath: ".; %java_home%lib;%java_home%lib/tools.jar; ".
All right! win+r-->cmd-->java-version;
But! out the bottom of this ghost, not seen before!!!
Error:could not open ' C:\Program files\java\jre6\lib\i386\jvm.cfg ';
Well, I haven't seen it. Check the information, after the personal verification, found that the following solution can solve the problem.
1. Locate the C:\Windows\System32 folder under Java.exe, Javaw.exe, javaws.exe three executable files;
2. Deletion of the top three files;
Well, Win+r-->cmd-->java found the JDK to run.
Error:could not open ' C:\Program files\java\jre6\lib\i386\jvm.cfg '