安装oracle9i后,Oracle会把自己安装目录下的jre设置到Path中比较靠前的位置,因此会出现java version_1.3.01错误。(在命令行,运行:java -version,显示java version "1.3.1_01")。
-----------------------------------------------------------------------
解决:手动修改PATH环境变量,把oracle下的jre路径删除。
-----------------------------------------------------------------------
我把我环境变量中的path内容列出如下:(以防误删)
path:E:/oracle/ora92/bin;C:/Program Files/Oracle/jre/1.3.1/bin;C:/Program
Files/Oracle/jre/1.1.8/bin;%SystemRoot%/system32;%SystemRoot%;%SystemRoot%/System32
/Wbem;%JAVA_HOME%/bin;C:/Program Files/Common Files/Roxio Shared/DLLShared/;C:/Program
Files/Common Files/Roxio Shared/9.0/DLLShared/;C:/Program Files/IDM Computer
Solutions/UltraEdit-32;E:/Development Tools/Rational Rose Enterprise
Editon/common;C:/Program Files/Microsoft SQL Server/90/Tools/bin/;C:/Program
Files/MySQL/MySQL Server 4.1/bin;C:/Program Files/Microsoft SQL Server/80
/Tools/BINN;C:/Program Files/Microsoft SQL Server/90/Tools/binn/