Coverting Class File to EXE using J2SDk

How can I covert an Class file (.class) to EXE (.exe for windows platform) while using J2SDK? Please tell me the complete process. I really need this as early as possible.
[185 byte] By [fk1980] at [2007-9-26 1:16:43]
# 1

Hi Fk1980,

It is actually not at all possible.

But here is a worst method given by microsoft.

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

http://forum.java.sun.com/thread.jsp?forum=31&thread=149733

I hope you will get some good idea.

Thanks

Bakrudeen

Technical Support Engineer

Sun MicroSystems Inc, India

bakrudeen_indts at 2007-6-29 0:44:56 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...
# 2

I'd avoid Microsoft's proprietary JVM like the plague (especially since it's not Java2 compliant).

Other options are:

1) Create an executable jar file (search the forums under "executable jar") which can be double-clicked to execute

2) Use an installer program like InstallAnywhere by zeroG: http://www.zerog.com - this will install your product and its support classes, set the classpath and give your user a desktop or start menu icon to double-click to start. The InstallAnywhereNOW! version is free. (It can also make installers for Linux, Unix & Mac)

3) Try one of these:

JET: http://www.excelsior-usa.com/jet.html

JToExe: http://www.bravozulu.com/Products/JToExe/jtoexe.html

Java2exe: http://www.duckware.com/java2exe.html

artntek at 2007-6-29 0:44:56 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...