Compiling jakarta projects with gcj
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Sat Aug 3 17:46:00 GMT 2002
Costin Manolache wrote:
>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.
>
Try setting your locale (ie "export LANG=en_US" or whatever). If you are
using the C locale then GCJ will not accept non-ascii characters
(ideally it would default to latin-1 to match Javac, but its up to glibc
not us, I believe). Alternativly you can just compile with the
--encoding=UTF-8 command line option.
>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.
>
Presumably Tomcat compiles with Jikes and Javac, so this is a bug in GCJ
rather than Tomcat and should be fixed there. The best thing to do is to
try an isolate a small as possible test case which reproduces the bug,
and we can try and fix it from there.
regards
Bryce.
More information about the Java
mailing list