当前位置: 技术问答>java相关
试了多次还是不成功,请各位帮帮忙!
来源: 互联网 发布时间:2015-01-24
本文导语: 小弟出学JAVA,在WIN98上安装JDK1。3WIN 成功,设置环境变量如下, set path=c:windows;c:windowscommand;c:jdk1.3bin;c:jdk1.3; SET CLASSPATH=.;c:jdk1.3bin;c:jdk1.3libdt.jar;c:jdk1.3lib;c:jdk1.3libtools.jar;c:jdk1.3jrelibi18n.jar;c:jdk1.3jrelibjaws.jar;c:jdk1.3jreli...
小弟出学JAVA,在WIN98上安装JDK1。3WIN 成功,设置环境变量如下,
set path=c:windows;c:windowscommand;c:jdk1.3bin;c:jdk1.3;
SET CLASSPATH=.;c:jdk1.3bin;c:jdk1.3libdt.jar;c:jdk1.3lib;c:jdk1.3libtools.jar;c:jdk1.3jrelibi18n.jar;c:jdk1.3jrelibjaws.jar;c:jdk1.3jrelibextiiimp.jar ;c:jdk1.3jrelibrt.jar;c:jdk1.3jrelibsunrsasign.jar
然后运行例子:
C:jdk1.3demojfcSimpleExamplesrc>javac simpleexample.java
成功运行
C:jdk1.3demojfcSimpleExamplesrc>java simpleexample
给出以下错误,
Error opening registry key 'SoftwareJavaSoftJava Runtime Environment'
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
试了修改环境变量多次,还是不对,请各位帮忙,分数一定送上!
先谢了!
set path=c:windows;c:windowscommand;c:jdk1.3bin;c:jdk1.3;
SET CLASSPATH=.;c:jdk1.3bin;c:jdk1.3libdt.jar;c:jdk1.3lib;c:jdk1.3libtools.jar;c:jdk1.3jrelibi18n.jar;c:jdk1.3jrelibjaws.jar;c:jdk1.3jrelibextiiimp.jar ;c:jdk1.3jrelibrt.jar;c:jdk1.3jrelibsunrsasign.jar
然后运行例子:
C:jdk1.3demojfcSimpleExamplesrc>javac simpleexample.java
成功运行
C:jdk1.3demojfcSimpleExamplesrc>java simpleexample
给出以下错误,
Error opening registry key 'SoftwareJavaSoftJava Runtime Environment'
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
试了修改环境变量多次,还是不对,请各位帮忙,分数一定送上!
先谢了!
|
因为是中文操作系统的关系,
你运行注册表,
把HKEY_LOCAL_MACHINESoftwareJavaSoft下面的Java运行环境改成Java Runtime Environment,
就可以了
你运行注册表,
把HKEY_LOCAL_MACHINESoftwareJavaSoft下面的Java运行环境改成Java Runtime Environment,
就可以了