目的是在没有安装JDK的情况下制作可执行jar。

步骤:
 
1、在应用程序文件根目录下新建一个META-INF目录,在该目录下新建MANIFEST.MF文件,
文件内容为:
1 Main-Class: 包名.主类名 
2 
3 

2、将应用程序根目录下所有文件用winrar或winzip打包,格式为zip;

3、将zip文件扩展名改为jar ;

4、双击jar文件即可运行。

希望能对大家有点帮助。

版权所有 罗明
posted on 2006-02-16 14:49 罗明 阅读(1185) 评论(1)  编辑  收藏 所属分类: JavaStudy
Comments
  • # Skrytyi Marketing
    Skrytyi Marketing
    Posted @ 2009-05-18 07:14
    great support!.
    I am from Uruguay and learning to read in English, give please true I wrote the following sentence: "Seo news offers search engine optimization seo news, seo tips, seo tutorials and web promotion resources information website optimization, page rank factors.seo news is the source for search engine optimization."

    8) Thanks in advance. Rex.  回复  更多评论   

只有注册用户登录后才能发表评论。


网站导航: