Chengyan Che wrote:
>
> Hi Friends,
>
> I am kind of newbie to both java and linux. Using JDK1.1.1, I've made a
> small java application which is intended to be used as a CGI script running
> on Linux(RedHat), Apache as http server. But how can I compile it into a
> native Linux machine code executable, instead of a .class file? I don't find
> any options for "javac" to achieve this. Where can I find such a compiler?
Compiling to native platforms is not part of the Java story, other than
just-in-time compilation provided at runtime within individual JVM
environments. That said... there is work going on to do just what you
describe: check out http://www.cygnus.com/product/javalang/ .
OTOH, it sounds like what you're really looking for is to run Java from
your web server. You've got three approaches available: 1) have a CGI
script invoke the JVM, or 2) add Java servlet capability to your server
(that is available for Apache somewhere), or 3) get a Java-based server
that has native servlet capability, such as Jigsaw
(http://www.w3.org/Jigsaw/).
Since these issues are not specific to the Linux platform, you might
want to look for mailing lists or newsgroups that are more focused on
general Java questions or on servlets.
Nathan
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]