running from eclipse

Subscribe to running from eclipse 4 post(s), 4 voice(s)

 
Avatar pb 10 post(s)

Hi,
I have successfully imported the source files into eclipse and added the appropriate jars – I think! But when I run the application I get the following error:

Fri Mar 19 12:15:19 GMT 2010: JBidwatcher 2.1pre5-debug
Fri Mar 19 12:15:19 GMT 2010: Apple Inc. Java, version 1.6.0_17 on Mac OS X
Fri Mar 19 12:15:20 GMT 2010: Loaded the appropriate driver.
Fri Mar 19 12:15:20 GMT 2010: Connected to database jbdb (JBidwatcher DataBase)
Fri Mar 19 12:15:20 GMT 2010: Auction information database already exists.
Fri Mar 19 12:15:20 GMT 2010: Closed connection
Fri Mar 19 12:15:20 GMT 2010: Database shut down normally
Fri Mar 19 12:15:20 GMT 2010: Loaded the appropriate driver.
Fri Mar 19 12:15:20 GMT 2010: Connected to database jbdb (JBidwatcher DataBase)
Fri Mar 19 12:15:21 GMT 2010: Closed connection
Fri Mar 19 12:15:21 GMT 2010: Database shut down normally
Exception in thread “main” java.util.MissingResourceException: Can’t find bundle for base name ebay_com, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:715)
at com.jbidwatcher.util.TT.(TT.java:24)
at com.jbidwatcher.auction.server.ebay.ebayServer.constructServer(ebayServer.java:326)
at com.jbidwatcher.auction.server.ebay.ebayServer.(ebayServer.java:308)
at com.jbidwatcher.app.JBidWatch.eBayServerSetup(JBidWatch.java:473)
at com.jbidwatcher.app.JBidWatch.main(JBidWatch.java:425)

Hope someone can help?

Cheers,
Paul.

 
Avatar tidris 49 post(s)

I think that means jbw isn’t finding the ebay_com.properties file at run time.

 
Avatar Morgan Schweers Administrator 1,200 post(s)

Greetings,
That’s correct; figuring out the right path for resource properties at launch is a real PITA, especially because it varies between debug and release builds. JBidwatcher actually tries one method, then if that fails, tries another, just in case it is/isn’t running in debug mode.

I recommend trying IntelliJ IDEA Community Edition for debugging JBidwatcher.

— Morgan Schweers, CyberFOX!

 
Avatar jimg 6 post(s)

In IntelliJ IDEA Community Edition, mark the resources folder as a Resource Root (right click folder and choose Mark Directory as"