后来细看注册表,HKEY_LOCAL_MACHINE\SOFTWARE\,发现自己的机器上缺少java software该项,才记起原来我重装过系统,注册表的java信息已没了,然后用记事本编辑该文件,将里面的路径改为你机器java的实际路径。最后在xp双击运行该文件导入注册表,这样问题就解决了!
附java.reg,划线中间部分:(此文件中jdk的路径为F:\\Java\\jdk1.5.0_14)
-----------------------------------------------------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
"CurrentVersion"="1.5"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.5]
"JavaHome"="F:\\Java\\jdk1.5.0_14"
"MicroVersion"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.5.0_14]
"JavaHome"="F:\\Java\\jdk1.5.0_14"
"MicroVersion"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.5.0_14]
"JavaHome"="F:\\Java\\jdk1.5.0_14\\jre"
"UseJava2IExplorer"=dword:00000001
"UseNewJavaPlugin"=dword:00000001
"HideSystemTrayIcon"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"Java5FamilyVersion"="1.5.0_14"
"CurrentVersion"="1.5"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5]
"JavaHome"="F:\\Java\\jdk1.5.0_14\\jre"
"RuntimeLib"="F:\\Java\\jdk1.5.0_14\\jre\\bin\\client\\jvm.dll"
"MicroVersion"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5.0_14]
"JavaHome"="F:\\Java\\jdk1.5.0_14\\jre"
"MicroVersion"="0"
"RuntimeLib"="F:\\Java\\jdk1.5.0_14\\jre\\bin\\client\\jvm.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5.0_14\MSI]
"JU"="1"
"OEMUPDATE"=""
"MODE"="C"
"FROMVERSION"="NA"
"KERNEL"=""
"PRODUCTVERSION"="6.0.140"
"INSTALLDIR"="F:\\Java\\jdk1.5.0_14\\jre\\"
"SYSTRAY"="1"
"EULA"="0"
"IEXPLORER"="1"
"MOZILLA"="0"
"JAVAUPDATE"="1"
"AUTOUPDATECHECK"="1"
"AUTOUPDATEDELAY"=""
"ImageCkSum"="307882084"
"FullVersion"="1.5.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.5.0_14"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1]
"Home"="F:\\Java\\jdk1.5.0_14\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_02]
"Home"="F:\\Java\\jdk1.5.0_14\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_03]
"Home"="F:\\Java\\jdk1.5.0_14\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_04]
"Home"="F:\\Java\\jdk1.5.0_14\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2]
"Home"="F:\\Java\\jdk1.5.0_14\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_01]
"Home"="F:\\Java\\jdk1.5.0_14\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.5.0_14]
"Home"="F:\\Java\\jdk1.5.0_14\\jre\\bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs]
----------------------------------------------------------------------------------------------------------------------------
转自http://cavonchen.blog.163.com/blog/static/1130143962009826105122245/