在c:\autoexec.bat文件中加:
path E:\jdk1.3.1_09\bin;

解决方案 »

  1.   

    ;E:\jdk1.3.1\bin;E:\jdk1.3.1\lib\dt.jar;E:\jdk1.3.1\lib\tools.jar
    在2000或是xp的环境变量里面加入以上的东西。
    具体设置地方:右键点击“我的电脑”-"属性"-“高级”-“环境变量”-“系统变量”中的path变量。
    要是用98,那么在c:\autoexec.bat里面直接加了。
      

  2.   

    在c:\autoexec.bat文件中加:set classpath=E:\jdk1.3.1_09\lib\tools.jar;
    set java_home=E:\jdk1.3.1_09
    set path=E:\jdk1.3.1_09\bin
      

  3.   

    我是xp,问题是
    我添加classpath为
    E:\jdk1.3.1_09\bin;E:\jdk1.3.1_09\lib\dt.jar;E:\jdk1.3.1_09\lib\tools.jar
    没有效果!
      

  4.   

    E:\jdk1.3.1_09\bin;放在path里,不是classpath
      

  5.   

    path是操作系统搜索的路径,classpath是JAVA类搜索路径