On 11/17/05, Randall Smith <[EMAIL PROTECTED]> wrote:
> Can anyone point me to resources on running Tomcat on the GNU gij runtime?
>
> Thanks.

Thanks, you prompted me to give it a try :-)

The GNU Classpath implementation only supports Java 1.4 so you'll have
to stick with Tomcat 5.0.x for the time being.

The quick way to get going is to modify the _RUNJAVA variable in setclasspath.sh

_RUNJAVA="/usr/bin/gij "


If you want natively compiled classes you could try using the GCJ JIT
functionality described here (compiles the classes on the fly):

http://gcc.gnu.org/ml/java/2005-06/msg00045.html

Just extend your gij setting in setclasspath. If it works it will take
a _long_ time to start as it compiles all the classes (but they will
then be in your cache for the next restart). When doing this I got a
"too many root sets" error. YMMV

To natively compile the classes first and then run Tomcat use the
script from here -
http://developer.classpath.org/mediation/ClasspathShowcase#head-7d9a556e8485fc84fd5ce0e52be6104d85e24316
- and wait ;-)

Finally change you gij arguments in setclasspath to include
-Dgnu.gcj.precompiled.db.path

This worked for me (at least I assume it did!).

If you get it going and have any opinions on performance I'd love to hear.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to