|
Help with bytecode in java
Hi, I am wondering if there is an alternative to distributing Java programs with the JVM.
For instance, I am wondering if anyone has seen a Java compiler that produces machine code rather than bytecode? I've heard of them, but never ever seen them.
Alternatively, what is the easiest way to make the Java class file seem 'executable'. My Current approach is to use a bat file (or shell script). With the bat file I simply associate my .class files with it and I can then run it by double-clicking the class file containing my main method.
However, some people find this a bit confusing since they are not used to running .class files. Is there a better way of achieving this?
Thanks.
|