Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to make excutable jar?
How to make excutable jar? [message #456421] Fri, 03 June 2005 06:41 Go to next message
Eclipse UserFriend
Originally posted by: cwalnutx.163.com

can someone tell me how to make a jar excutable?

some jar i can run it just by double-clicking,
but my jar can't. Is there something i should do
to make a jar excutable?

WaVe
Re: How to make excutable jar? [message #456428 is a reply to message #456421] Fri, 03 June 2005 12:56 Go to previous messageGo to next message
Sebastien is currently offline SebastienFriend
Messages: 20
Registered: July 2009
Junior Member
Hi,
I know of two alternatives. The first is the "wrapper" and the second is
the "compiler". The wrapper works like a executable launch script that will
launch your main() with the local VM. On the other hand, the compiler will
compile your jar, with the VM, into a binary executable.

One of my favorite wrappers, the one I use, is exe4j
(http://www.ej-technologies.com/products/exe4j/overview.html). To compile
my jars into an executable, I used Excelsior JET (expensive
do)(http://www.excelsior-usa.com/jet.html). Here's other choices :
http://www.javaapis.com/execjava/
http://www.sureshotsoftware.com/exej/
http://www.duckware.com/jexepack/index.html
http://www.marochess.de/chess/tools/jlaunch/
http://launch4j.sourceforge.net/
http://www.dobysoft.com/products/nativej/
http://www.syncedit.com/download_javalauncher.html

Hope this helps

Sebastien


"WaVe" <cwalnutx@163.com> a
Re: How to make excutable jar? [message #456430 is a reply to message #456421] Fri, 03 June 2005 13:23 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 97
Registered: July 2009
Member
You got to include "manefest" file containing the class name
of the "main()" method as;

Main-class: your.package.Class_NAME

make it as follows;

"jar cmf manest your.jar includefiles ..."

For details, read the Java Tutorial, JAR section.

Cheers.


"WaVe" <cwalnutx@163.com> wrote in message
news:b290c416dfc51e1a35dfffce378cbeff$1@www.eclipse.org...
> can someone tell me how to make a jar excutable?
>
> some jar i can run it just by double-clicking,
> but my jar can't. Is there something i should do
> to make a jar excutable?
>
> WaVe
>
Re: How to make excutable jar? [message #456591 is a reply to message #456421] Sun, 05 June 2005 00:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wv83.sohu.com

Thanks Sebastien and Joe Smith
i'll have try. ^-^
Re: How to make excutable jar? [message #456593 is a reply to message #456428] Sun, 05 June 2005 00:57 Go to previous message
Eclipse UserFriend
Originally posted by: wv83.sohu.com

Sebastien,
exe4j is perfect. This is exactly what i need.
thank you very much! ^-^
Previous Topic:retrieve MenuItem by ID
Next Topic:Pocket PC Closing shell
Goto Forum:
  


Current Time: Tue Apr 16 09:10:20 GMT 2024

Powered by FUDForum. Page generated in 0.10186 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top