G:\WebTools\JCreator Pro\MyProjects\UsePackage.java:4: cannot access Temp4 bad class file: G:\WebTools\JCreator Pro\MyProjects\qwj2\Temp4.class class file contains wrong class: qwj2.Temp4 Please remove or make sure it appears in the correct subdirectory of the classpath. Temp4 t4=new Temp4(); ^ 有新的错误
你试试把
UsePackage也放到一个package里面
在classpath 里面设置你的qwj2目录,就应该可以了
就是把我自己的包也定义在classpath里面吗?
我试试看
bad class file: G:\WebTools\JCreator Pro\MyProjects\qwj2\Temp4.class
class file contains wrong class: qwj2.Temp4
Please remove or make sure it appears in the correct subdirectory of the classpath.
Temp4 t4=new Temp4();
^
有新的错误
G:\WebTools\JCreator Pro\MyProjects\qwj2\Temp4.class
全部代码就是上面的
是不是要把qwj2这个目录打包成.jar的文件?
还是不行