0

I have got my files from my java programmer and have edited some .java files in netbeans and saved again.

How do i pack this into a JAR files that works? I am complete new into this java. All files is .java Think i needs to be .class, but how?

I tried to just put the java files into the JAR file like i do in ZIP and RAR's. But don't think this work properly. Can someone help me?

First of all, all my files is .java, i think it should be .class, but how can i convert them all to .class files?

Then i run:

  jar cf AvatarServer_Q.jar *

But need manifest, think it because of java to class.

4

2 回答 2

0

你读过任何教程吗?你可以看看:创建jar

了解清单文件:清单基础知识

于 2012-12-26T11:35:57.320 回答
0

这就是您所需要的: http: //docs.oracle.com/javase/tutorial/deployment/jar/

如何制作可执行的jar文件?

于 2012-12-26T11:36:36.010 回答