Problems in FC5

Subscribe to Problems in FC5 5 post(s), 4 voice(s)

 
Avatar (SF) P_G 2 post(s)

I switched from Suse 10 to FC5 and now when I try to launch JBidWatcher from the console

java -jar JBidWatcher-1.0.jar

I get the following error:

Exception in thread “main” java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass (libgcj.so.7)
at FilterManager$AuctionListHolder. (FilterManager.java:79)
at FilterManager.loadFilters (FilterManager.java:101)
at JBidWatch. (JBidWatch.java:1060)
at JBidWatch.main (JBidWatch.java:671)
Caused by: java.lang.IllegalArgumentException: classname: java.io.InputStream;
at java.awt.datatransfer.DataFlavor.getRepresentationClassFromMime (libgcj.so.7)
at java.awt.datatransfer.DataFlavor. (libgcj.so.7)
at java.awt.datatransfer.DataFlavor. (libgcj.so.7)
at JDropListener.getDataFlavor (JDropListener.java:72)
at JDropListener.setupFlavors (JDropListener.java:94)
at JDropListener. (JDropListener.java:60)
at JBidMouse. (JBidMouse.java:71)
at AuctionsUIModel. (AuctionsUIModel.java:49)
at java.lang.Class.initializeClass (libgcj.so.7)
…4 more

I am running the latest version of Java

What am I doing wrong?

PG

 
Avatar Morgan Schweers Administrator 1,204 post(s)

Greetings,
Your default Java is the not-yet-functional GCJ version.

The GCJ version of Java is incomplete, and should not be used as the default. Despite this, Redhat and others have made it the default. :(

Anyway, if you haven’t installed Sun’s version of Java for Linux, do so at:
http://java.sun.com/getjava

If you have, or once you have, you need to make sure you’re running that, and not the ‘default’ Java, wherever it may be.

I’d generally suggest creating a small shell script which runs Java specifically from your Sun Java install, which should be something like:
/usr/java/jre1.5.0_09

In any case, I’d avoid the GCJ version of Java for now.

(You can tell it’s the GCJ version, because of the line:
at java.lang.Class.initializeClass (libgcj.so.7)
which references libgcj.)

I hope this helps!

— Morgan Schweers, CyberFOX!

 
Avatar (SF) P_G 2 post(s)

Thank you so much!

I really love this program a lot and was sad it did’t want to work!

Here is my shell script for any one who maybe needs it later on:

In text editor

#!/bin/bash

  1. JBidwatcher
    echo Launching JBidwatcher
    /usr/java/jre1.5.0_09/bin/java -jar JBidWatcher-1.0.jar

save the file (I called it JBidwatcher)

in your terminal window type
chmod 755 JBidwatcher (or what ever your file name is)

copy this file to your /home/bin directory (if you don’t have one make it)

Now all you have to do is type JBidwatcher in your terminal window and away you go!

>>I know this seems simple to all the brilliant minds that hang here but some of us need dumbed down directions :)

May you be blessed!

Pastor George

 
Avatar (SF) Michael... 10 post(s)

George,

for those who need dumbed down instructions ;-) you forgot to tell that

a) JBidWatcher-1.0.jar has to be in the same location as this script is
b) typing JBidWatcher in the terminal only works if
1) you are in the directory /home/bin
or
2) the path to /home/bin was added to the path environment in your shell

I don’t know anything about Fedora FC5 but I suppose a path like /home/bin should include the username somewhere if you want it to install for a single user. Otherwise a location like /usr/local/bin would be more appropriate. Your distribution probably encourages you to use a proper location for either user-based or system-wide usage, which they tell you about somewhere in the documentation.

— Michael

P.S.: You might want to tell your vendor about the confusion these incomplete GNU Java Compiler stuff is spreading among the less geeky users.

 
Avatar (SF) trtrs 3 post(s)

SUN Java should be GPL’d soon so hopefully this will solve the GCJ problems…