• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java class file to exe file ???

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friends,
did somebody know how to convert a Java class file to a exe file....so that i can include my gif files and my class file to an compressed exe file???
Thanx a lot guys...
vikas
vikasde@usa.net
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
vikas,
Converting a class file to a exe would make the class file loose what it is meant to be , Operating system independent.
However it still can be done using some tools. check out some search engines for "class exe" or similar search for some tools. However you may have to pay to use these products. To the best of my knowledge these tools are not free.
I found such tools in downloads.com


------------------
Regds.
Mahindrakar
 
Rahul Mahindrakar
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have read somewhere that Visual Cafe supports conversion of a class file to a exe. I have however not tried this to comment on how it is done in this IDE.

------------------
Regds.
Mahindrakar
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
vikas,
As Rahul mentioned, this kind of defeats the purpose of using Java, but there are ways to do it... If you are using a Unix based system I think GNU has made some kind of executable Java generator (not sure of the name), but all it really does is translate Java code to C++ code and run it through the Gnu C++ compiler. This is the only free version I know of. There are other programs that make executable Java code, but most come with IDEs and are nowhere near free... In addition to the one Rahul mentioned (Visual Cafe), I believe IBMs VisualAge IDE has a Java exe generator, and, if you wanna go with M$ J++ (which I don't recommend), I think it has an exe generator. All of these programs do one of two things... they either translate your Java code into another language (usually C++) that is compiled, or they package your class files, a small JVM, and some code to tie it all together into an executable file.
HTH,
-Nate
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As mention by both guys that it is possible but After your exe file lost it's platform independency
ok
 
reply
    Bookmark Topic Watch Topic
  • New Topic