(1)直接在环境变量中删除配置的相关路径
path的值:
C:Documents and SettingsAdministrator>path PATH=C:Documents and SettingsAll UsersApplication DataOracleJavajavapath;D:oracleproduct10.
删除配置的Oracle变量,如下所示:
C:Documents and SettingsAll UsersApplication DataOracleJavajavapath;
(2)执行java -version命令后报错
按提示更改注册表的相关键值:
重新打开一个cmd,执行java -version,命令正常执行: