We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › Getting Rita.Wordnet to work
Page Index Toggle Pages: 1
Getting Rita.Wordnet to work (Read 1280 times)
Getting Rita.Wordnet to work
Sep 19th, 2009, 11:51am
 
Hello,

I have trouble with working with the Rita.Wordnet Alpha [024] Library in Processing v1.0.6. Every time when I initalize an RiWordnet object an Exception is thrown. For example:

   import rita.wordnet.*;

   RiWordnet wordnet;

   void setup() {
     size(200,200);
     wordnet = new RiWordnet(this);
   }

   void draw() {}

While trying to compile it I get a MissingResourceException: Can't find bundle for base name JWNLResource, local de_DE

By the way I'm working with a operating system (Windows 7) with german language.

Here is what the compiler says:

   [INFO] RiTa.WordNet.version [024]

   Exception in thread "Animation Thread" java.lang.ExceptionInInitializerError
       at rita.wordnet.RiWordnet.<init>(RiWordnet.java:146)
       at rita.wordnet.RiWordnet.<init>(RiWordnet.java:123)
       at sketch_sep19c.setup(sketch_sep19c.java:25)
       at processing.core.PApplet.handleDraw(PApplet.java:1403)
       at processing.core.PApplet.run(PApplet.java:1328)
       at java.lang.Thread.run(Thread.java:619)
   Caused by: java.util.MissingResourceException: Can't find bundle for base name JWNLResource, locale de_DE
       at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)

       at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
       at java.util.ResourceBundle.getBundle(ResourceBundle.java:787)
       at net.didion.jwnl.util.ResourceBundleSet.getBndl(ResourceBundleSet.java:73)
       at net.didion.jwnl.util.ResourceBundleSet.access$1(ResourceBundleSet.java:72)
       at net.didion.jwnl.util.ResourceBundleSet$1.hasMoreElements(ResourceBundleSet.java:
56)
       at net.didion.jwnl.JWNL.createResourceBundle(JWNL.java:164)
       at net.didion.jwnl.JWNL.<clinit>(JWNL.java:55)
       ... 6 more

I have no clue how to get it to work. Do you have in idea whats happing and how to solve this problem?

Thanks for your time, take care
Re: Getting Rita.Wordnet to work
Reply #1 - Sep 20th, 2009, 5:40am
 
Adding

void setup() {
 size(200,200);
 Locale.setDefault(Locale.ENGLISH);
 wordnet = new RiWordnet(this);
}

works perfect
Page Index Toggle Pages: 1