Hello Stephane,

St�phane Sire wrote:
Hi,

I have got the following problem running on OS X 10.2 (Darwin Kernel Version 6.1: Power Macintosh powerpc)
with java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-root_1.3.1_020714-12:46)
Java HotSpot(TM) Client VM (build 1.3.1_03-69, mixed mode)
and Batik-1.5 version

java -jar batik-squiggle.jar
Exception in thread "main" java.lang.ExceptionInInitializerError: java.util.MissingResourceException: Can't find bundle for base name org.apache.batik.apps.svgbrowser.resources.GUI, locale fr_FR
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.ja va:707)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:678)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:554)
at org.apache.batik.i18n.LocalizableSupport.getResourceBundle(Unknown Source)
at org.apache.batik.apps.svgbrowser.Resources.<clinit>(Unknown Source)
at org.apache.batik.apps.svgbrowser.JAuthenticator.initWindow(Unknown Source)
at org.apache.batik.apps.svgbrowser.JAuthenticator.<init>(Unknown Source)
at org.apache.batik.apps.svgbrowser.Main.<init>(Unknown Source)
at org.apache.batik.apps.svgbrowser.Main.main(Unknown Source)

I also tried with:

java -Duser.language=en -Duser.region=US -jar batik-squiggle.jar
and
java -Duser.language=en -Duser.region=UK -jar batik-squiggle.jar

with the same result.... (except for locale en_US or en_UK

Thanks in advance,

St�phane S.

PS: to run batik-squiggle.jar on OS X I also had to copy all the jar files contained into
the lib directory of the batik binary distribution into my ~/Library/Java/Extensions folder
otherwise I had a class not found exception with crimson-parser. I understand it perfectly,
but as the documentation of Batik is written it is suggested that the lib folder content does not
need to be included into the classpath (I thought it would be hardcoded into batik executables
relative to the application directory) ?

Actually, you should not need to do that. The squiggle Jar file's metafile contains references to the jars it needs relative to the current directory:

Manifest-Version: 1.0
Main-Class: org.apache.batik.apps.svgbrowser.Main
Class-Path: lib/batik-ext.jar \
lib/batik-dom.jar \
lib/batik-css.jar \
lib/batik-svg-dom.jar \
lib/batik-gvt.jar \
lib/batik-parser.jar \
lib/batik-script.jar \
lib/batik-bridge.jar \
lib/batik-swing.jar \
lib/batik-transcoder.jar \
lib/batik-gui-util.jar \
lib/batik-awt-util.jar \
lib/batik-util.jar \
lib/batik-xml.jar \
lib/crimson-parser.jar \
lib/js.jar

you should not have gotten any exception with classes in crimson-parser. Which class was it?

Vincent.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to