Topic: 我用fat jar 编译了个程序可是运行不了?我带图了 |
Print this page |
1.我用fat jar 编译了个程序可是运行不了?我带图了 | Copy to clipboard |
Posted by: tjbkoy Posted on: 2008-11-17 13:27 我在eclipse里面编译运行此程序能成功,这个程序是个连连看,也是在论坛上下的, 用fat jar 打包 我双击这个jar程序可以出现程序界面 可是点开始就卡了,只能结束程序 我在cmd环境下用命令编译出现这个错误: 我因为刚学java 没遇到过,弄了大半天了,还是弄不好,希望大家给我这个菜鸟点建议,谢谢了!!! 请详细点,我是菜鸟!!!感激不尽! 如果您论坛上不好讲的话 我QQ275100931 |
2.Re:我用fat jar 编译了个程序可是运行不了?我带图了 [Re: tjbkoy] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2008-11-17 17:11 Link this thread with the following one: http://www.cjsdn.net/post/view?bid=30&id=188195&tpg=1&ppg=1&sty=1#196643 |
3.Re:我用fat jar 编译了个程序可是运行不了?我带图了 [Re: tjbkoy] | Copy to clipboard |
Posted by: tjbkoy Posted on: 2008-11-17 20:56 能详细解释下么? 在eclipse中能运行出程序啊 。。。。。。。。。 但是打包后出现这样的错误。、 bug? 不好意思我是新手 请多多指教! |
4.Re:我用fat jar 编译了个程序可是运行不了?我带图了 [Re: tjbkoy] | Copy to clipboard |
Posted by: tjbkoy Posted on: 2008-11-17 21:05 麻烦谁帮我解释下 cmd 环境下 那张图片出现的是个什么错误》》》》??? 有高手能加我qq 讲解一下么?、、、、 275100931 拜托了 我在论坛等了一天了!!!!!!!!!! 进论坛就希望多学点东西 |
5.Re:我用fat jar 编译了个程序可是运行不了?我带图了 [Re: tjbkoy] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2008-11-22 01:23 tjbkoy wrote: Hi tjbkoy, People in this forum scarifies their own time to help others with their questions regarding Java. And we wish to answer the questions in a comfortable and cozy environment. Do not try to push others by giving any time constraints or others. By the way, I will have a look at this problem at this weekend. Jiafan |
6.Re:我用fat jar 编译了个程序可是运行不了?我带图了 [Re: tjbkoy] | Copy to clipboard |
Posted by: xuxiaolei Posted on: 2008-11-22 12:10 版主的心肠真好,楼主的问题是因为楼主自己改的源程序的原因(原程序是没有问题的),另外,楼主打jar包的方式也比较特别,楼主在我给出详细打jar包的步骤后,楼主的问题已经解决了。谢谢版主。 |
7.Re:我用fat jar 编译了个程序可是运行不了?我带图了 [Re: tjbkoy] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2008-11-24 04:29 Finally, I have a chance to look at this issue. I have tried to build the jar file from the source code, and I have not encountered any problems. As xuxiaolei has pointed out, you should not modify the existing source code. Otherwise, the work flow of the program might be broken, as some class might be missing. It is also important to note that the Main-Class: qqlink.QQLink in the manifest.mf must be specified in order to make the jar as an executable jar file. Regards, Jiafan |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |