生成Jar问题
来源:百度知道 编辑:UC知道 时间:2024/06/06 06:04:41
我用netBean成成Jar时出现下面的问题。请问怎么解决啊?
init:
deps-jar:
compile:
Building jar: C:\Documents and Settings\Administrator\桌面\ESS\dist\ESS.jar
Not copying the libraries.
To run this application from the command line without Ant, try:
java -jar "C:\Documents and Settings\Administrator\桌面\ESS\dist\ESS.jar"
jar:
不胜感谢!各个类都是对的啊,我运行的时候是可以的,但是生成Jar时候就出现上述问题!!!
netbeans直接生成就可以了啊!!以前生成的没有出现那种情况啊
To run this application from the command line without Ant, try:
上面的这句话是用红色标记的,什么意思啊?
init:
deps-jar:
compile:
Building jar: C:\Documents and Settings\Administrator\桌面\ESS\dist\ESS.jar
Not copying the libraries.
To run this application from the command line without Ant, try:
java -jar "C:\Documents and Settings\Administrator\桌面\ESS\dist\ESS.jar"
jar:
不胜感谢!各个类都是对的啊,我运行的时候是可以的,但是生成Jar时候就出现上述问题!!!
netbeans直接生成就可以了啊!!以前生成的没有出现那种情况啊
To run this application from the command line without Ant, try:
上面的这句话是用红色标记的,什么意思啊?
这是问题吗?
只是告诉你 打包的时候没有把lib中的打进去而已
如果不用ant命令运行这个应用程序的话,你可以这样:
java -jar "C:\Documents and Settings\Administrator\桌面\ESS\dist\ESS.jar"
用jdk自带的jar把。
假如你要打包的目录是e盘
cmd
Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.
C:\Documents and Settings\Administrator>e:
E:\>jar cvf a.jar *.*
好像运行的时候不能有中文名的吧??
把文件扔在D盘!再运行就OK了~
我只晓得用jdk 生成 jar
其他的不清楚!