This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling jakarta projects with gcj


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]