Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <38A310D6.D7416EBE@sigma6.com> Date: Thu, 10 Feb 2000 14:26:14 -0500 From: Jeff Sturm Organization: AppNet X-Mailer: Mozilla 4.51 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: "Gust, Micron" Cc: "cygwin AT sourceware DOT cygnus DOT com" Subject: Re: Compiling Servlets to native code with GCJ (and Tomcat) References: <374103B51B3AD311ACDA0008C7E62E000106C157 AT smspap42m DOT rfc DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "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