LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   trouble with JRE 1.5 and running a .jar (https://www.linuxquestions.org/questions/linux-software-2/trouble-with-jre-1-5-and-running-a-jar-334737/)

toaster.waffle 06-17-2005 07:50 PM

trouble with JRE 1.5 and running a .jar
 
hey. I downloaded the jre*.bin file and ran it. 'installed' it to /opt/jre1.5.0_02/

i'm able to run azureus... but i can't run Arachnophilia (http://www.arachnoid.com/arachnophilia/)

i get the error:
Code:

# java /opt/Arachnophilia.jar
Exception in thread "main" java.lang.NoClassDefFoundError: /opt/Arachnophilia.jar
#

I think it is a problem with the jar. I've redownloaded it time after time, and it worked fine before i had to re-install slackware.

Any help is appreciated

Vgui 06-17-2005 08:13 PM

Try making the jar executable first before running in
Code:

chmod +x Arachnophilia.jar
Then go to the same directory as the jar, and go
Code:

java -jar Arachnophilia.jar
If it tells you about /opt/something then your path may not be set properly. Doing the above got it running for me.

toaster.waffle 06-17-2005 08:21 PM

this just in... closed azureus, and re-started it.... got this:


Code:

Exception in thread "main" java.lang.NoClassDefFoundError: org/gudy/azureus2/ui/swt/Main
this is not a .jar file i dont believe.

Electro 06-18-2005 12:48 AM

I have JDK 1.5 from Sun Microsystems. The Arachnophilia file is a jar file. You have to include -jar. I ran it just fine. You do not need to make it executable.

Azureus always starts for me. No, I do not have multiple Java versions. I just have the version I told you. However, you have to go into the Azureus directory to run it. You can add an alias line or write a script that goes to the Azureus directory and then back.

I did not know that Arachnophilia has switch to a universal programming langauge.

RAdams 06-21-2006 11:33 PM

Quote:

Originally Posted by Electro
I have JDK 1.5 from Sun Microsystems. The Arachnophilia file is a jar file. You have to include -jar. I ran it just fine. You do not need to make it executable.

Azureus always starts for me. No, I do not have multiple Java versions. I just have the version I told you. However, you have to go into the Azureus directory to run it. You can add an alias line or write a script that goes to the Azureus directory and then back.

I did not know that Arachnophilia has switch to a universal programming langauge.

Oh, how I adore you, my friend. Executing from inside the azureus directory fixed the bugger. A million thanks.


All times are GMT -5. The time now is 01:56 PM.