The JDK environment variable needs to be reset after each system reload
Some of the entry in the project little white look at setting environment variables on the network article or set the wrong environment variable
Provides a batch that can be run under Win7 (using the SETX command) to set environment variables automatically.
Cls@echo Off:startSet/P Home=Please enter the JDK installation path: IF EXIST"%home%\bin\java.exe"GOTO Install:warningrem Input directory error, prompt to re-enter echo the path you entered is not the JDK installation path echo Please re-enter the correct JDK installation path pauseGotoStart:installrem If you enter the correct JAVA2SDK installation directory, start setting environment variables the path to the echo input is:%home%@setx Java_home"%home%"@setx Path"%%java_home%%\bin;%path%"IF"%classpath%"=="" GotoNoclasspath@setx CLASSPATH"%classpath%;.; %%java_home%%\lib\tools.jar;%%java_home%%\lib\dt.jar;%%java_home%%\jre\lib\rt.jar"GOTO end:noclasspath@setx CLASSPATH".; %%java_home%%\lib\tools.jar;%%java_home%%\lib\dt.jar;%%java_home%%\jre\lib\rt.jar"GOTO END