java环境变量配置完全正确,但是java.exe不运行问题解决办法:
把下面代码copy做成注册表文件,把里面的jdk所在位置改成你的就ok
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development
Kit]
"CurrentVersion"="1.6"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development
Kit\1.6]
"JavaHome"="C:\\Program Files\\Java\\jdk1.6.0_10"
"MicroVersion"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development
Kit\jdk1.6.0_10]
"JavaHome"="C:\\Program Files\\Java\\jdk1.6.0_10"
"MicroVersion"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Plug-in\jdk1.6.0_10]
"JavaHome"="C:\\Program Files\\Java\\jdk1.6.0_10\\jre"
"UseJava2IExplorer"=dword:00000001
"UseNewJavaPlugin"=dword:00000001
"HideSystemTrayIcon"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime
Environment]
"Java6FamilyVersion"="jdk1.6.0_10"
"CurrentVersion"="1.6"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime
Environment\1.6]
"JavaHome"="C:\\Program Files\\Java\\jdk1.6.0_10\\jre"
"RuntimeLib"="C:\\Program
Files\\Java\\jdk1.6.0_10\\jre\\bin\\client\\jvm.dll"
"MicroVersion"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime
Environment\jdk1.6.0_10]
"JavaHome"="C:\\Program Files\\Java\\jdk1.6.0_10\\jre"
"MicroVersion"="0"
"RuntimeLib"="C:\\Program
Files\\Java\\jdk1.6.0_10\\jre\\bin\\client\\jvm.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime
Environment\1.6.0_10\MSI]
"JU"="1"
"OEMUPDATE"=""
"MODE"="C"
"FROMVERSION"="NA"
"KERNEL"=""
"PRODUCTVERSION"="6.0.100"
"INSTALLDIR"="C:\\Program Files\\Java\\jdk1.6.0_10\\jre\\"
"SYSTRAY"="1"
"EULA"="0"
"IEXPLORER"="1"
"MOZILLA"="0"
"JAVAUPDATE"="1"
"AUTOUPDATECHECK"="1"
"AUTOUPDATEDELAY"=""
"ImageCkSum"="307882084"
"FullVersion"="1.6.0_14-b08"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"EnableJavaUpdate"=dword:00000001
"NotifyDownload"=dword:00000001
"NotifyInstall"=dword:00000000
"UpdateSchedule"=dword:00000010
"Frequency"=dword:011c0000
"UpdateMin"=dword:0000002f
"ScheduleId"="S-1-5-21-484763869-1123561945-1417001333"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start]
"CurrentVersion"="1.6.0_10"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web
Start\1.0.1]
"Home"="C:\\Program Files\\Java\\jdk1.6.0_10\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web
Start\1.0.1_02]
"Home"="C:\\Program Files\\Java\\jdk1.6.0_10\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web
Start\1.0.1_03]
"Home"="C:\\Program Files\\Java\\jdk1.6.0_10\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web
Start\1.0.1_04]
"Home"="C:\\Program Files\\Java\\jdk1.6.0_10\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2]
"Home"="C:\\Program Files\\Java\\jdk1.6.0_10\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web
Start\1.2.0_01]
"Home"="C:\\Program Files\\Java\\jdk1.6.0_10\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web
Start\1.6.0_14]
"Home"="C:\\Program Files\\Java\\jdk1.6.0_10\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs]