PDA

Click to See Complete Forum and Search --> : Can I create EXE file in Java?


sbasak
Feb 10th, 2003, 11:14 AM
Since Java bycode usually runs thru interpreter thus a lot slower than compiled code, can I write any EXE file using Java?

bsw2112
Feb 10th, 2003, 11:36 AM
I got this at another form i frequent
read the third paragraph


Distributions on Windows from Win98 to Win2K ship with the Java Virtual Machine. However because Microsoft is in fierce competition with Sun, the makers of Java, they only shipped version 1.0 of the JVM, which is outdated and quite slow. They announced at the realease on WinXP that from now on they won't even distribute it. This means that a good proportion of Windows users have Java (the VM only, not the full SDK) on their machine, but it's an old version; it also means XP users need to install it themselves.

Some programs are bundled with a JVM executable, so that they can be run on all systems. Most programs simply give their users a link to Sun's JRE installation page or browser plugin page.

There are Java compilers which create Windows executables from Java code. However most of them put restrictions on what can be compiled and what can't, and furthermore it's destroying the main advantage of Java, namely portability. You can simply tell the users of your programs where they can install Java - it's a quite simple process, esp. installing the plugin, and you only need to do it once.





bsw