前些日子下载了最新版本的Eclipse3.0,解压到d:/Eclipse目录下,启动时弹出一个小提示框说出错请查看Eclipse/configuration/下的一个*******.log文件.
文件中说:
!SESSION 涓?鏈?01, 2005 23:16:43.692 ----------------------------------------------
eclipse.buildId=I200405211200
java.version=1.3.1_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
!ENTRY org.eclipse.osgi 涓?鏈?01, 2005 23:16:43.692
!MESSAGE Error registering XML parser services.
!STACK 0
java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
问题原因很简单:找不到javax.xml.parsers.SAXParserFactory,奇怪了?我的java.version是1.4.1得呀,怎么成了1.3.1的了?!仔细想想,就是装了个orcale9的客户端,难道是它在从中捣鬼?
运行cmd命令,path+回车,输出下面的结果:D:/oracle/ora92/bin;G:/Program Files/Oracle/jre/1.3.1/bin;G:/Program Files/Oracle/jre/1.1.8/bin;%SystemRoot%/system32;%SystemRoot%;%SystemRoot%/System32/Wbem;D:/Borland/JBuilderX/jdk1.4
赶紧在环境变量中把path的值设为:D:/oracle/ora92/bin;%java_home%/jre/bin;%SystemRoot%/system32;%SystemRoot%;%SystemRoot%/System32/Wbems
重启eclipse,OK,好了!!!
又害怕把orcale搞坏了,运行了一遍,好着呢,呵呵,java的版本问题也烦人啊!