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

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: <38A310D6.D7416EBE@sigma6.com>
Date: Thu, 10 Feb 2000 14:26:14 -0500
From: Jeff Sturm <jsturm AT sigma6 DOT com>
Organization: AppNet
X-Mailer: Mozilla 4.51 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: "Gust, Micron" <MGust AT RFC DOT com>
Cc: "cygwin AT sourceware DOT cygnus DOT com" <cygwin AT hotpop DOT com>
Subject: Re: Compiling Servlets to native code with GCJ (and Tomcat)
References: <374103B51B3AD311ACDA0008C7E62E000106C157 AT smspap42m DOT rfc DOT com>

"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

- Raw text -


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