×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

Need help for Java installation

I am just learning Java, I have a question when I installed the Java SDK1.3. My OS is NT4.0, I installed in the directory of c:\jdk1.3. After I entered the control panel, I added the above installing directory for the configuration of system environment. However, when I run javac command, everything is ok, when I run java command, the following errors was found :
Error opening registry key 'software\Javasoft\ Java Runtime Environment'
Error: could not find java.dll
Error: could not find Java2 Runtime Environment
I know it is possible the Classpath error, could someone help me solve this problem?
Thinks
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / Need help for Java installation
    I am just learning Java, I have a question when I installed the Java SDK1.3. My OS is NT4.0, I installed in the directory of c:\jdk1.3. After I entered the control panel, I added the above installing directory for the configuration of system environment. However, when I run javac command, everything is ok, when I run java command, the following errors was found :
    Error opening registry key 'software\Javasoft\ Java Runtime Environment'
    Error: could not find java.dll
    Error: could not find Java2 Runtime Environment
    I know it is possible the Classpath error, could someone help me solve this problem?
    Thinks
    • Please Undo all things you have done in the control panel
      After you install JDK1.3, you don't need "add the above installing directory for the configuration of system environmen"
      (I copied your words). Since you are working on NT, you can set PATH and CLASSPATH in the "My computer" icon. Right click it and go to environments.

      Please undo all things you have done with your control panel, and re-install JDK.1.3
      • thanks jabber !
        • To set PATH
          Fengie,

          I guess you touched on control panel because you want to set PATH.

          Actually, you have a few ways to do it

          1) right click My Computer, go to properties|environment and add C:\jDK1.3\bin to PATH

          2) you can issue a command after you open a MS-DOS as follows
          set PATH=%PATH%;C:\jdk1.3\bin

          3) You can also write a Windows .cmd file to run 2)