By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

Java to executable

P: n/a
Hi,

I'm looking for a tool that converts a jar into an executable program (or
something like that). I guess there are a couple of options:
1) Convert the jar into a real executable that runs natively on
the operating system (or similar)
2) Pack a jar file and JRE into one file, and make it look
like an executable file (or similar)
3) any other possibilities welcome

The point is that when I distribute my java program, I don't
want to let my users install JRE if they don't have it.

Is there any good web site that summarizes these techniques?
And also, I appreciate if anyone could recommend tools to
do (1) or (2). It doesn't matter if it is free or payware.

My main platform is Windows, but if the tool supports both
Windows and linux, it's better.
(I'm using JDK 1.4.x, and using JNI, too)

Thank you for your help,

--jaques
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
ja**********@yahoo.de (Jaques) wrote in message news:<56**************************@posting.google. com>...
I'm looking for a tool that converts a jar into an executable program (or
something like that). I guess there are a couple of options:
1) Convert the jar into a real executable that runs natively on
the operating system (or similar)
2) Pack a jar file and JRE into one file, and make it look
like an executable file (or similar)
3) any other possibilities welcome

--jaques


hi
there are lot of tools available for this (i havebt used any so i
would not refer to any but theres a wide choice)

as far as your second option goes
i have written a small program in c which runs .class / . jar files
just like any normal file by double clicking it
when you first time click any .class file , your system will ask you
as default viewer is not associated with it (remove any if it is) ,
choose this program & you are done
then you can simply double click any .class file & if you have jre &
..class has main method your file will run as if you manually invoked
java.exe from command prompt

it can be supplied command line arguments , java -switches
i shall mail you if you want

regards
amey
Jul 17 '05 #2

P: n/a
Jaques wrote:
Hi,

I'm looking for a tool that converts a jar into an executable program (or
something like that). I guess there are a couple of options:
1) Convert the jar into a real executable that runs natively on
the operating system (or similar)
2) Pack a jar file and JRE into one file, and make it look
like an executable file (or similar)
3) any other possibilities welcome

The point is that when I distribute my java program, I don't
want to let my users install JRE if they don't have it.

Is there any good web site that summarizes these techniques?
And also, I appreciate if anyone could recommend tools to
do (1) or (2). It doesn't matter if it is free or payware.

My main platform is Windows, but if the tool supports both
Windows and linux, it's better.
(I'm using JDK 1.4.x, and using JNI, too)

Thank you for your help,

--jaques

Hi Jacques,
have a look at this :

http://www.ej-technologies.com/produ.../overview.html)
or http://www.yoda.arachsys.com/java/javaexe.html
or http://www.geocities.com/marcoschmid...mp.html#native

Hope this helps,
brgds Herman

--
Suse Linux Professional 8.1 on Athlon 1.1 Ghz 512 Mb
Anti Spam = remove the "dot" and the "at"
Registered Linux User #264690
Jul 17 '05 #3

P: n/a
ja**********@yahoo.de (Jaques) wrote in
news:56**************************@posting.google.c om:
Hi,

I'm looking for a tool that converts a jar into an executable program
(or something like that). I guess there are a couple of options:
1) Convert the jar into a real executable that runs natively on
the operating system (or similar)
2) Pack a jar file and JRE into one file, and make it look
like an executable file (or similar)
3) any other possibilities welcome

The point is that when I distribute my java program, I don't
want to let my users install JRE if they don't have it.

Is there any good web site that summarizes these techniques?
And also, I appreciate if anyone could recommend tools to
do (1) or (2). It doesn't matter if it is free or payware.

My main platform is Windows, but if the tool supports both
Windows and linux, it's better.
(I'm using JDK 1.4.x, and using JNI, too)

Thank you for your help,

--jaques


Hi,

I recently found this tool:

http://jsmooth.sourceforge.net/

It wraps your jar into a windows exe. You can specify what JRE is
required for your app and the tool will check if it exists on the user
machine. If the required JRE is not found it will direct the user to
download a suitable JRE. I've used several tools for deploying on
Windows and I have found this one to be most flexible.

Robert
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.