【在 g*****g 的大作中提到】 : Shouldn't you do : import com.test1.*;
j*6
8 楼
很好看
Z*e
9 楼
the problem is indeed with they way you created the jar change your jar to a zip file and unzip it, a normal jar as created should look like: com\ test1\ Class1.class Class2.class ... META-INF\ MANIFEST.MF I guess yours does not look like that, because you created the jar by specifiy the absolute path instead of relative path. you should have created the jar in the top of your source folder and use relative path, .e.g jar cvf test.jar com\test1\*.* Or, since you are using e
【在 Z****e 的大作中提到】 : the problem is indeed with they way you created the jar : change your jar to a zip file and unzip it, a normal jar as created should : look like: : com\ : test1\ : Class1.class : Class2.class : ... : META-INF\ : MANIFEST.MF
Z*e
14 楼
when I use command like "jar cvf test.jar D:\com\test", the resulting jar structure would be: D_\ com\ test\ Class1.class ... META-INF\ MANIFEST.MF
【在 Z****e 的大作中提到】 : when I use command like "jar cvf test.jar D:\com\test", the resulting jar : structure would be: : D_\ : com\ : test\ : Class1.class : ... : META-INF\ : MANIFEST.MF :