classpath 中 加 . 就可以解决这个问题啦!

解决方案 »

  1.   

    javac - a.java b.java???不明白哦另,classpath中已经设置了当前目录了,并且编译也是在当前目录下进行的。
      

  2.   

    http://www.netyi.net/in.asp?id=lockllb//大量的教程!几乎包含了有关于计算机的一切!!!!!!
      

  3.   

    b.java中加
    import P.a;设置你的类路径
    WIN:
    CLASSPATH=%CLASSPATH%;P_Directory
    LINUX:
    CLASSPATH=$CLASSPATH:P_Directory其中P_Directory是你的包P所在的绝对目录。
      

  4.   

    ok,I got it.I think the core is the path of my package. The classpath should be the upper path of my package.
      

  5.   

    ok ,everyone coming here scores points!