Topic: 请教:有关jar命令和MAINFEST的设置

  Print this page

1.请教:有关jar命令和MAINFEST的设置 Copy to clipboard
Posted by: leihongfei
Posted on: 2004-08-30 22:51

我把class文件用jar命令打包以后,怎么设置MAINFEST
让这个.jar文件双击就执行程序啊
谢谢

2.Re:请教:有关jar命令和MAINFEST的设置 [Re: leihongfei] Copy to clipboard
Posted by: why
Posted on: 2004-08-30 23:02

Do a search on Google or your favourite search engine, and you will find something like:
www.cafeaulait.org/course/week4/50.html (the first result by searching runnable jar on Google)
or something more interesting
http://www.javaworld.com/javaworld/javatips/jw-javatip127.html

Actually this is on J2RE documentation:
http://java.sun.com/j2se/1.4.2/runtime.html


Then, for double-click, search again and you should be able to find
http://forum.java.sun.com/thread.jsp?thread=545562&forum=31&message=2655822
(This is to configure the "open" action of jar extension for Windows, for Linux, I don't know)


Please consider writing down the findings and solution you have. Thanks.Smile

3.Re:请教:有关jar命令和MAINFEST的设置 [Re: why] Copy to clipboard
Posted by: ringayumi
Posted on: 2004-08-30 23:59

Main-Class: [your class]


   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