Le 20 nov. 06 à 13:07, [EMAIL PROTECTED] a écrit :

then after that i wanted to give a try to "svggen.font" using again
the build.sh script but get a "NullPointerException" )))

   This is odd. Since you are building from source you might
try turning on line numbers by creating a file 'build.properties'
with the line 'debug=on' in it, in top directory of Batik
(same directory that has 'build.xml').

OK, fine then i did :

ant clean

ant compiletest

debug on is OK :

compile-prepare:
    [mkdir] Created dir: /Users/yvon/bin/xml-batik/classes
     [echo] debug on, optimize on, deprecation on


BUT i got a "funny" result :

    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError: Java heap space
[javac] at com.sun.tools.javac.code.Scope $ImportScope.makeEntry(Scope.java:343)
    [javac]     at com.sun.tools.javac.code.Scope.enter(Scope.java:194)
    [javac]     at com.sun.tools.javac.code.Scope.enter(Scope.java:182)
[javac] at com.sun.tools.javac.comp.MemberEnter.importAll (MemberEnter.java:132) [javac] at com.sun.tools.javac.comp.MemberEnter.visitTopLevel (MemberEnter.java:509) [javac] at com.sun.tools.javac.tree.JCTree $JCCompilationUnit.accept(JCTree.java:445) [javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter (MemberEnter.java:387) [javac] at com.sun.tools.javac.comp.MemberEnter.complete (MemberEnter.java:797) [javac] at com.sun.tools.javac.code.Symbol.complete (Symbol.java:383) [javac] at com.sun.tools.javac.code.Symbol $ClassSymbol.complete(Symbol.java:756) [javac] at com.sun.tools.javac.code.Symbol$ClassSymbol.flags (Symbol.java:688) [javac] at com.sun.tools.javac.comp.Resolve.isAccessible (Resolve.java:124) [javac] at com.sun.tools.javac.comp.Resolve.loadClass (Resolve.java:843) [javac] at com.sun.tools.javac.comp.Resolve.findGlobalType (Resolve.java:901) [javac] at com.sun.tools.javac.comp.Resolve.findType (Resolve.java:957) [javac] at com.sun.tools.javac.comp.Resolve.findIdent (Resolve.java:986) [javac] at com.sun.tools.javac.comp.Resolve.resolveIdent (Resolve.java:1162) [javac] at com.sun.tools.javac.comp.Attr.visitIdent (Attr.java:1663) [javac] at com.sun.tools.javac.tree.JCTree$JCIdent.accept (JCTree.java:1546) [javac] at com.sun.tools.javac.comp.Attr.attribTree (Attr.java:314) [javac] at com.sun.tools.javac.comp.Attr.attribType (Attr.java:342) [javac] at com.sun.tools.javac.comp.MemberEnter.visitVarDef (MemberEnter.java:607) [javac] at com.sun.tools.javac.tree.JCTree $JCVariableDecl.accept(JCTree.java:690) [javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter (MemberEnter.java:387) [javac] at com.sun.tools.javac.comp.MemberEnter.memberEnter (MemberEnter.java:399) [javac] at com.sun.tools.javac.comp.MemberEnter.finishClass (MemberEnter.java:410) [javac] at com.sun.tools.javac.comp.MemberEnter.finish (MemberEnter.java:978) [javac] at com.sun.tools.javac.comp.MemberEnter.complete (MemberEnter.java:945) [javac] at com.sun.tools.javac.code.Symbol.complete (Symbol.java:383) [javac] at com.sun.tools.javac.code.Symbol $ClassSymbol.complete(Symbol.java:756) [javac] at com.sun.tools.javac.comp.Enter.complete (Enter.java:430)
    [javac]     at com.sun.tools.javac.comp.Enter.main(Enter.java:408)

BUILD FAILED
/Users/yvon/bin/xml-batik/build.xml:453: Compile failed; see the compiler error output for details.

Total time: 1 minute 17 seconds


and that after i quit all apps except one browser...

i didn't have that prob the first time i've build batik (1 or 2 days ago).



java.util.MissingResourceException: Can't find bundle for base name
org.apache.batik.svggen.font.resources.Messages, locale en_US

then i thought something is missing in the class path, i've added **
ALL ** the jars below JAVA_HOME into the class path with the same
result.

   You need to add the 'resources' directory to the classpath.
This is where the localized messages files are located.

yes fine, it seems to me that "build.sh" doesn't add this folder however it might be the ant task afterwards ?

Also i have to say i had to change one line of build.sh :

#CP=$JAVA_HOME/lib/tools.jar:$ANT_HOME/lib/build/ant_1_4_1.jar:./lib/ build/crimson-ant.jar:./lib/build/jaxp.jar

(around line 50)

to :

CP=$ANT_HOME/lib/ant.jar:$ANT_HOME/lib/ant-launcher.jar:./lib/build/ crimson-ant.jar:./lib/build/jaxp.jar:resources

because no "lib/tools.jar" at all on my box (Mac OS X the latest) with the following java versions :

1.3.1
1.4.2
1.5.0
1.6.0  (the one i'm using)

i'm impatient to play with batik from jRuby ;-)

best,

Yvon

Reply via email to