当前位置: 技术问答>java相关
jar打包的问题
来源: 互联网 发布时间:2015-04-12
本文导语: 文件名如下所示: com/jspsmart/upload/File.class com/jspsmart/upload/Files.class com/jspsmart/upload/Request.class com/jspsmart/upload/SmartUpload.class com/jspsmart/upload/SmartUploadException.class 我用如下命令进行打包, jar cf SmartUpload.jar uploadfle.txt -C...
文件名如下所示:
com/jspsmart/upload/File.class
com/jspsmart/upload/Files.class
com/jspsmart/upload/Request.class
com/jspsmart/upload/SmartUpload.class
com/jspsmart/upload/SmartUploadException.class
我用如下命令进行打包,
jar cf SmartUpload.jar uploadfle.txt -C com/jspsmart/upload .
其中 uploadfile.txt 内容如下:
File.class
Files.class
Request.class
SmartUpload.class
SmartUploadException.class
但我用jar tf SmartUpload.jar察看时,出现:
META-INF/
META-INF/MANIFEST.MF
upload.txt
com/jspsmart/upload/./
com/jspsmart/upload/./File.class
com/jspsmart/upload/./Files.class
com/jspsmart/upload/./Request.class
com/jspsmart/upload/./SmartUpload.class
com/jspsmart/upload/./SmartUploadException.class
怎么解决这个问题呀???
com/jspsmart/upload/File.class
com/jspsmart/upload/Files.class
com/jspsmart/upload/Request.class
com/jspsmart/upload/SmartUpload.class
com/jspsmart/upload/SmartUploadException.class
我用如下命令进行打包,
jar cf SmartUpload.jar uploadfle.txt -C com/jspsmart/upload .
其中 uploadfile.txt 内容如下:
File.class
Files.class
Request.class
SmartUpload.class
SmartUploadException.class
但我用jar tf SmartUpload.jar察看时,出现:
META-INF/
META-INF/MANIFEST.MF
upload.txt
com/jspsmart/upload/./
com/jspsmart/upload/./File.class
com/jspsmart/upload/./Files.class
com/jspsmart/upload/./Request.class
com/jspsmart/upload/./SmartUpload.class
com/jspsmart/upload/./SmartUploadException.class
怎么解决这个问题呀???
|
什么意思啊,你的问题说明白点儿
jar tf xxx.jar时
就是那样啊!
去掉.
哪个.啊?
jar tf xxx.jar时
就是那样啊!
去掉.
哪个.啊?
|
送分噢!
^^
^^
|
我来拿!!!
|
^_^