Experimenting with building libxalan2-java with free vm's

Michael Koch konqueror@gmx.de
Tue Mar 15 09:46:03 2005


On Tue, Mar 15, 2005 at 02:13:14PM +0100, Wolfgang Baer wrote:
> Hi all,
> 
> libxalan2-java is the main blocker atm for moving several java packages
> to main - I therefore started experimenting with compiling it with the
> free tools.
> 
> Although I almost had success - there are some problems left. Maybe one
> of you has an idea.
> 
> The main problem is that libxalan2-java needs DOM Level *2* interfaces
> to compile against. the gnu classpath vm's are already at Level *3* implementation.
> 
> Therefore the first question:
> 
> Are any of the free vm's capable of using the -Djava.endorsed.dirs
> feature to overwrite the interfaces ?
> 
> As I didn't succeded with this try I moved on to jamvm - it seems
> that there I can override runtime classes by positioning them before
> /usr/share/classpath/glibj.zip in the classpath.
> 
> Well it compiles :-)
> 
> But there are some other problems:
> 
> With the project documentation I always get a cannot open display
> warning and therefore an error.
> 
> [java] [Project] Creating "graphics/xsltc_performance-label-3.jpg"
> [java] [Xalan2Processor] Applying XSL sheet "sbk:/style/stylesheets/context2label.xsl"
> [java] (.:18969): Gtk-WARNING **: cannot open display:
> [java] Java Result: 1
> 
> I used -Djava.awt.headless=true but it seems to have no affect on
> jamvm.
> 
> 
> Also during javadoc generation i get a OutOfMemory error. The vm
> has 512m set but javadoc seems to fork another vm. According to
> the ant manual one has to use the maxmemory option in the javadoc
> task.
> 
> But gjdoc gives me:
> 
> [javadoc] WARNING: Ignored option -J-Xmx512m. Pass this option to the VM if required.
> 
> Anybody an idea how to solve this ?
> 
> Beside that the compile worked fine with jamvm. Only the javadoc and
> other documentation generation fails atm.

Older gjdoc had some insane defaults. Can you please retry with gjdoc
0.7.3-1. Its currently pending upload but I think we can manage to have
it in the archive by tomorrow.


Michael
-- 
Java Trap: http://www.gnu.org/philosophy/java-trap.html