kestrel7
10-27-2002, 05:17 AM
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 :(
(Yes, I know I lose the 'compile once, run everywhere' property but I'm willing to make that sacrifice :)
Alternatively, what is the easiest way to make the Java class file seem 'executable'
(but using the JVM). 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?
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 :(
(Yes, I know I lose the 'compile once, run everywhere' property but I'm willing to make that sacrifice :)
Alternatively, what is the easiest way to make the Java class file seem 'executable'
(but using the JVM). 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?