| Errors while trying to compile ant 1.6.5 with gcj 4.0 | Errors while trying to compile ant 1.6.5 with gcj 4.0 2005-06-10 - By Alexey N. Solofnenko
It is an interesting exercise... Tools.jar is required, if you want to run <javac/> in process, otherwise you can specify <javac fork="true".../> and external compiler will be used (for example, jikes). Another possibility is to compile tools.jar into native code (not sure whether gcj can do it and maybe it is illegal, because gcj would have to decompile bytecode in order to generate native code and I doubt you will have rights to redistribute the results).
- Alexey.
Bernhard Rosenkraenzer wrote: > Hi, > when trying to compile ant from source using gcj 4.0 (no non-free JDKs > installed), hundreds of deprecation warnings and 2 fatal errors: > > src/main/org/apache/tools/ant/IntrospectionHelper.java:495: error: No > constructor matching > '(org.apache.tools.ant.IntrospectionHelper,java.lang.Object,java.lang.Object) ' > found in class 'org.apache.tools.ant.IntrospectionHelper$NestedCreator'. > nc = new NestedCreator(null) { > ^ > src/main/org/apache/tools/ant/IntrospectionHelper.java: In class > 'org.apache.tools.ant.IntrospectionHelper$2': > src/main/org/apache/tools/ant/IntrospectionHelper.java: In constructor > '(org.apache.tools.ant.IntrospectionHelper,java.lang.Object,java.lang.Object) ': > src/main/org/apache/tools/ant/IntrospectionHelper.java:508: error: No > constructor matching > '(org.apache.tools.ant.IntrospectionHelper,java.lang.Object,java.lang.Object) ' > found in class 'org.apache.tools.ant.IntrospectionHelper$NestedCreator'. > nc = new NestedCreator(null) { > ^ > 2 errors > > > Trying to use the ant binaries doesn't work either: ant -version results in > Unable to locate tools.jar. Expected to find it in /usr/lib/tools.jar > Apache Ant version 1.6.5 compiled on June 2 2005 > > AFAICT gcj doesn't have a tools.jar file. > Any ideas on this? > > Thanks, > bero > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@(protected) > For additional commands, e-mail: user-help@(protected) >
-- ------------------------------------------------------------------------ / Alexey N. Solofnenko home: http://trelony.cjb.net/ /
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |