logo       

Re: locale problem: can't find bundle: msg#00084

Subject: Re: locale problem: can't find bundle
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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe