|
Java's a platform independant language, and exes are platform dependant, so Java does not natively support being compiled into machine code. The standard way is to create a jar, as andro correctly points out.
This said, gcj can compile Java into executables, but I wouldn't recommend this for a beginner.
|