This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Compiling jakarta projects with gcj
- From: Costin Manolache <cmanolache at yahoo dot com>
- To: java at gcc dot gnu dot org
- Date: Fri, 02 Aug 2002 11:43:50 -0700
- Subject: Compiling jakarta projects with gcj
- Newsgroups: gmane.comp.gcc.java.devel
Hi,
I'm trying to test that tomcat compiles with gcj. I was
able to compile most of it and it's dependencies - but
there are some problems.
First, in jakarta-commons/beanutils there are few files
having non-ascii chars in some comments ( the author name, French ).
That fails.
A bigger problem is in compiling jasper2, in
jakarta-tomcat-jasper-5/jasper2. The problem is in
jasper2/src/share/org/apache/jasper/compiler/Generator.java
where a lot of inner classes ( including some declared inside
methods ) are used. I moved them around, but I still get an error
I can't trace:
/ws/cvs/jakarta-tomcat-jasper-5/jasper2/src/share/org/apache/jasper/compiler/Generator.java: In class `org.apache.jasper.compiler.Generator':
/ws/cvs/jakarta-tomcat-jasper-5/jasper2/src/share/org/apache/jasper/compiler/Generator.java: In method `access$67(org.apache.jasper.compiler.ServletWriter,org.apache.jasper.compiler.Node)':
/ws/cvs/jakarta-tomcat-jasper-5/jasper2/src/share/org/apache/jasper/compiler/Generator.java:3278: error: Exception `org.apache.jasper.JasperException' must be caught, or it must be declared in the `throws' clause of `access$67'.
^
/ws/cvs/jakarta-tomcat-jasper-5/jasper2/src/share/org/apache/jasper/compiler/Generator.java: In method `class$(java.lang.String)':
/ws/cvs/jakarta-tomcat-jasper-5/jasper2/src/share/org/apache/jasper/compiler/Generator.java:1: error: Missing return statement.
/*
^
2 errors
Any sugestions ? I would like to make the required changes in tomcat so
it compiles and works with gcj - but this is a show-stopper.
Costin