It's not a secret anymore!
The moose likes Other JSE/JEE APIs and the fly likes .exe in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark ".exe in Java" Watch ".exe in Java" New topic

.exe in Java

shailendra vasale
Ranch Hand

Joined: Dec 17, 2000
Posts: 38
hi All,
Can anyone plz help me out how to make an .exe file of .class file in JAVA.
Thanks in advance.
guy ranch

Joined: May 14, 2001
Posts: 9
you can try out using the J2Exe utility(even i don't know much about it).run a search on it and you'll find many such free/sharewares for that purpose
great veera

Joined: May 14, 2001
Posts: 24
there is a tool called j2exe that can be helpful to you,
Joel Cochran
Ranch Hand

Joined: Mar 23, 2001
Posts: 301
Sun's Forte launch is a .exe, so certainly there must be something in the Java packages to handle this operation? I'm a little confused... how could we have stand alone Java applications without an inherent way of clicking on an icon. I'm sure most of us don't launch applications from the DOS prompt? If I'm missing something, please point it out to me...
I'm a soldier in the NetScape Wars...

Wait a minute, I'm trying to think of something clever to say...<p>Joel
Subramaniam Krishnan

Joined: Jun 04, 2001
Posts: 10
try JToExe at
its pretty good.
regards Subu
Subramaniam Krishnan

Joined: Jun 04, 2001
Posts: 10
One way of running a Java Application by directly double clickin on it is by making .bat file for the aplication. My doubt here is that if my application opens in a browser how does on give the URL in the address bar ? Any help ?
ryan headley
Ranch Hand

Joined: Jun 28, 2000
Posts: 156
making a stand alone app with a clickable icon is really quite simple.
Make sure you have your paths setup correctly though.
Create a shortcut and make the target read something like this:

Then in the Start In directory enter the directory structure where your classfile is located:

Then go find a pretty icon on the internet and set it as the icon for the shortcut.
The javaw.exe will also keep you from getting the ugly DOS prompt or DOS window when it starts...I do it all the time.

Ryan Headley<br /><a href="" target="_blank" rel="nofollow"></a>
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Guy ranch and great veera:
Please note that your names are a violation of the JavaRanch naming standard. We require that you use real (or at least not obviously false) names. Thank you.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Nencho Dimitrov

Joined: Aug 08, 2003
Posts: 1
There is free tool for non-comersial use.
It's well done
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
This thread was over two years old.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Will I be able to create a exe file for a swing application as well?

I agree. Here's the link:
subject: .exe in Java
It's not a secret anymore!