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.
Oliver Hirschi - 19 Sep 2006 06:48 GMT
> 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.
What about Google?
http://www.google.ch/search?hl=de&q=java+to+exe

Signature
Oliver Hirschi
http://www.FamilyHirschi.ch
Andrew Thompson - 19 Sep 2006 07:15 GMT
> 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.
ZZW - 19 Sep 2006 07:30 GMT
you can use Jsmooth.
a easier way is to make a .bat file to run your app.
but both you need JRE installed.
> 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.
绝望的笨蛋 - 21 Sep 2006 08:31 GMT
I think Justion's mean is to create a .exe file from java runtime,
not change a .class file to .exe.
> you can use Jsmooth.
> a easier way is to make a .bat file to run your app.
[quoted text clipped - 3 lines]
> > know it undermines the platform independence of java. But, I have my
> > justification to do so. So please please help me.
Thomas Kellerer - 19 Sep 2006 07:55 GMT
Justin wrote on 19.09.2006 07:45:
> 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.
Here are loads of programs:
http://tinyurl.com/ne4we
http://tinyurl.com/o3y4n
Thomas
juergen - 19 Sep 2006 12:07 GMT
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
Justin schrieb:
> 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.
Paul Davis - 19 Sep 2006 13:19 GMT
> 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.