Running JBidWatcher in Fedora4

Subscribe to Running JBidWatcher in Fedora4 5 post(s), 2 voice(s)

 
Avatar (SF) james tate 12 post(s)

I have JBidWatcher-0.9.7.1.jar and jre-1_5_0_04-linux-i586.rpm Installed and when I do a
/usr/bin/java -jar /home/mickey/JBidWatcher-0.9.7.1.jar
I get the following error:
Exception in thread “main” java.lang.NullPointerException
at JConfigGeneralTab.buildSpendingLimits() (Unknown Source)
at JConfigGeneralTab.JConfigGeneralTab() (Unknown Source)
at JConfigFrame.createConfigFrame() (Unknown Source)
at JConfigFrame.JConfigFrame() (Unknown Source)
at JBidWatch.getUserSetup() (Unknown Source)
at JBidWatch.main(java.lang.String[]) (Unknown Source)
at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)

Can someone explain to me why JBidwatcher won’t run.

Thanks
Jim

 
Avatar Morgan Schweers Administrator 1,204 post(s)

Greetings,
The clue is at the bottom:

> at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
> at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)

This indicates it’s trying to use ‘gcj’ to run JBidwatcher, which will not work. You need a full Java Runtime, including the UI classes.

GCJ, Kaffe, and most others have only partial implementations of the Java API, usually very specifically leaving out the UI components that make JBidwatcher work as well as it does. I’d be thrilled if they actually reimplemented all the class libraries, but since they don’t, I really wish Redhat wouldn’t ship them…

The Sun or IBM Java Runtimes will work best. You should be able to get the Sun JRE at:

http://www.java.com/getjava

— Morgan Schweers, CyberFOX!

 
Avatar (SF) james tate 12 post(s)

I had jre installed and I removed it and installed the version
at http://www.java.com/getjava and I get the same error
message.

Jim

 
Avatar Morgan Schweers Administrator 1,204 post(s)

Greetings,
That means that the installed JRE isn’t in your path.

You’ll want to run the new java binary from wherever it got installed to, instead of your /usr/bin/java.

It’s probably in /usr/java/{something}/bin

— Morgan Schweers, CyberFOX!

 
Avatar (SF) james tate 12 post(s)

Yes that was what it was, wrong path.
Thanks very much Morgan.

Jim