You are not logged in.
Pages: 1
Hey all, I'm setting up a basic home server/torrent box and I'm planning on using Azureus in CLI mode/web interface. But I've run into a bit of a problem. I followed the instructions on the Azureus wiki and installed gcc-gcj 4.2.2.1(the current version from pacman). Alas every time I try to run a .jar I get the following error:
Error occurred during initialization of VM
java/lang/ClassNotFoundException: error in opening JAR file /opt/jave/jre/lib/rt.jar
The error occurs when I try to run a .jar and also when attempting to check the java version with "java --version". I tried reinstalling gcc-gcj and also the jre package. Running as root or a user doesn't change anything either. Can anyone point me towards a solution or tell me what I'm doing wrong?
Offline
Have you logged out (and back in) since installing java? You are probably just missing the $CLASSPATH environment variable.
Offline
Have you logged out (and back in) since installing java? You are probably just missing the $CLASSPATH environment variable.
I have and no luck. I'm thinking you may still be right though. I echoed $CLASSPATH and got this:
[andrew@Red5 ~]# echo $CLASSPATH
:/opt/java/jre/lib
Which doesn't quite match up to the form shown in post #9 of this thread. So I guess the next stupid question would be how do i go about setting my classpath manually?
Offline
Your classpath looks fine. It is set by /etc/profile.d/jre.sh at login time. If you had also installed the JDK, you would have a "bigger" classpath, like the one in that post #9. However, you only need the JRE to run Azureus.
Did you cut & paste the error message in your first post? If so, Azureus seems to be looking for /opt/javE instead of /opt/javA. If this is just a manual typo in the post, then my only other recommendation is to try with only the jre installed (remove gcc-gcj, log out and back in). I have been using jdk+jre for many years, and they really should just work right out of the box.
Offline
The original message was typed by hand because I was posting on another machine. The typo was my error, not the computers.
But success! I removed gcc-gcj, jre and deleted a few leftover files by hand then reinstalled jre and azureus and now it's working. Thanks a lot for the help. I've got the console ui running so now it's just a matter of getting the webui up and I'm set. Now I'm glad I picked up a 500GB drive this afternoon.
Offline
Pages: 1