Java .class to .exe

J

Justin

Is there any way I can create a .exe file from a java .class file? I
know it undermines the platform independence of java. But, I have my
justification to do so. So please please help me.
 
A

Andrew Thompson

Justin said:
Is there any way I can create a .exe file from a java .class file? I
know it undermines the platform independence of java. But, I have my
justification ...
What?

...to do so.

Andrew T.
 
Z

ZZW

you can use Jsmooth.
a easier way is to make a .bat file to run your app.
but both you need JRE installed.
 
J

juergen

I know it is possible (fairly straigthforward) to generate
Linux-executables from JAVA sources, with gcj, a tool from the Gnu
Compiler Collection.
As GCC can be used with Windows, look out for the 'cygwin' or 'mingw' -
toolsets, it might be possible to generate windows-executables. Give it
a try ...

( I was using the GCC C-compiler a lot under Windows, much can be done
with it (e.g. SSL
programming) )

Juergen
 
P

Paul Davis

juergen said:
I know it is possible (fairly straigthforward) to generate
Linux-executables from JAVA sources, with gcj, a tool from the Gnu
Compiler Collection.
As GCC can be used with Windows, look out for the 'cygwin' or 'mingw' -
toolsets, it might be possible to generate windows-executables. Give it
a try ...
Yes, it works on Windows as well. The only caveat is windowing
toolkits. Since gcj uses the classpath library, AWT adn Swing are very
weakly supported. However, if you use SWT, it will link in flawlessly.
Also, executables created with gcj will require the runtime dlls be
distrubuted (so's on Linux) with the executable unless staticly linked
into a jumbo executable.
 
G

Guest

I think Justion's mean is to create a .exe file from java runtime,
not change a .class file to .exe.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top