P
pansj1229
Unregistered / Unconfirmed
GUEST, unregistred user!
例如:我在程序中用
package com;
.........(该class名为Vector)
写一个class
然后在调用这个class时
import com.*;
..........(该class名为LibTest)
用javac编译时发生
LibTest.java:5:cannot access Vector
bad class file:./Vector.class
class file contain wrong class:com.Vector
please make sure it appears in the correct subdirectory of the classpath
我在classpath中的路径为
.;d:/jdk1.4/lib/dt.jar;d:/jdk1.4/lib/tools.jar;e:/class
com文件包放在e:/class里
请问这是怎么回事
package com;
.........(该class名为Vector)
写一个class
然后在调用这个class时
import com.*;
..........(该class名为LibTest)
用javac编译时发生
LibTest.java:5:cannot access Vector
bad class file:./Vector.class
class file contain wrong class:com.Vector
please make sure it appears in the correct subdirectory of the classpath
我在classpath中的路径为
.;d:/jdk1.4/lib/dt.jar;d:/jdk1.4/lib/tools.jar;e:/class
com文件包放在e:/class里
请问这是怎么回事