Problems in FC5
|
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 I am running the latest version of Java What am I doing wrong? PG |
|
Greetings, 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: 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: 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: I hope this helps! — Morgan Schweers, CyberFOX! |
|
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
save the file (I called it JBidwatcher) in your terminal window type 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 |
|
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 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. |
|
SUN Java should be GPL’d soon so hopefully this will solve the GCJ problems… |