Hi Bhaskarq,
Hi,
It is not at all possible.
But it is a really worst method.
Please go through it.
This is a very common question asked in the comp.lang.java newsgroup. Its often useful to have an
executable application when deploying your
applications to a specific platform, but remember to
make your .class files available for users running
Unix/Macintosh/other platforms.
Microsoft provide a free system development kit (SDK),
for Java, which includes the jexegen tool. This
will convert class files into a .EXE form. The only
disadvantage is that users need a Microsoft Java
Virtual Machine (JVM) installed. If your target
platform is Win32, you can either redistribute the
virtual
machine, or raise the level of your system
requirements, to include Windows 98, or Windows 95
with
Internet Explorer 4. Systems matching these
requirements will already have a copy of the Microsoft
Java Virtual Machine installed.
Note : You must specify all of the class files your
application needs (except for standard java packges)
as a parameter, so if you have third party libraries,
you'll need to include them as well. You can use wildcards * though, and you don't need the original source code.
Also please see this Forum which will give a good idea
http://forum.java.sun.com/thread.jsp?forum=31&thread=149733
I hope this will help you.
Thanks
Bakrudeen
Technical Support Engineer
Sun MicroSystems Inc, India
If you don't mind giving one of Java's key features, platform indepence, away (SHAME ON YOU!) there are programs like...
JToExe: http://www.bravozulu.com/Products/JToExe/jtoexe.html
JET: http://www.excelsior-usa.com/jet.html
Java2exe: http://www.duckware.com/java2exe.html
...that can do it. The question remains: why on earth would you want to do it when you can make a portable, executable jar file? For instructions on that, see http://java.sun.com/docs/books/tutorial/jar/basics/run.html starting from "JAR Files as Applications - 1.2 platform only".
Hi Jsalonen,
Perhaps I have given the forum thread which has discussion for jar files. Perhaps your discussion is there on that forum. Anyhow, I should not encourage in converting class files to exe. Also regarding the jar files I can accept that I have missed it.
Thanks for your reminder.
Thanks
Bakrudeen