Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

Java .class to .exe

Thread view: 
Justin - 19 Sep 2006 06:45 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.
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.