delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/02/10/13:27:39

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <374103B51B3AD311ACDA0008C7E62E000106C159@smspap42m.rfc.com>
From: "Gust, Micron" <MGust AT RFC DOT com>
To: "cygwin AT sourceware DOT cygnus DOT com" <cygwin AT hotpop DOT com>
Subject: RE: Compiling Servlets to native code with GCJ (and Tomcat)
Date: Thu, 10 Feb 2000 12:32:51 -0600
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

Do you know of any servlet engines that only use what's supported in Libgcj
and that would be easier to compile with gcj?

-----Original Message-----
From: Jeff Sturm [mailto:jsturm AT sigma6 DOT com]
Sent: Thursday, February 10, 2000 1:26 PM
To: Gust, Micron
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Compiling Servlets to native code with GCJ (and Tomcat)


"Gust, Micron" wrote:
> I am trying to use gcj to compile Java servlets. What I've heard is that
you
> need to compile both the servlet engine and the servlet into one
executable.
> So I've decided to try this using Apache's Tomcat servlet engine.

You'll have trouble doing this with gcj, since Tomcat relies on object
serialization and RMI (IIRC), which aren't currently supported by
libgcj.

> I downloaded both the .class files and the source code, but I don't know
how
> to begin the compilation since there are so many .class files. I have
looked
> at the source code, but I don't know which main method is the entry point
> into the application.

But to answer your question, compile class files as you would sources:

  gcj -O2 -c *.class
  gcj -O2 *.o --main=name-of-main-class -o name-of-executable

Find out how Tomcat is invoked (there is probably a shell script
somewhere).  The main entry point should be identified by the `java'
command line.

-- 
Jeff Sturm
jsturm AT sigma6 DOT com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019