• 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

convert class files to executable files

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have made a InstantMessenger in Java using RMI & Core Java(Frames) . This code is working in Local network successsfully. But we want to make an executable file of this code, which user can download from the internet and can install the same on his machine.
Can someone help us to make java class files to executable files.
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dipesh -
I'm going to move this over to Advanced, since the RMI/CORBA part doesn't relate to the solution you want.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a common question here at the Java Ranch. If you do a search for this question, you will find a lot of posts from the past.
Here are some things I learned though.
There are 3rd party apps that will convert your CLASS files into an EXE, but they are really expensive.
The best thing to do is JAR up your file, use a program like INSTALL SHIELD and create a batch that runs the JAR file and then INSTALL SHIELD will package that into an EXE installer that will place your JAR file and your BAT file in the appropriate locations. Your Batch file should create the class path.

------------------
Happy Coding,
Gregg Bolinger
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As Gregg mentioned, there are several commercial tools which do that but they are expensive. You may want to try Java2exe. You have to pay for it, all functionalities are there but there is some kind of popup frame that appear as long as you don't register... I tried it and it works fine.
The solution given by Gregg is fine too, and IMO more elegant!
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
reply
    Bookmark Topic Watch Topic
  • New Topic