LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-17-2005, 08:50 PM   #1
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo
Posts: 97

Rep: Reputation: 15
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
 
Old 06-17-2005, 09:13 PM   #2
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
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.
 
Old 06-17-2005, 09:21 PM   #3
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo
Posts: 97

Original Poster
Rep: Reputation: 15
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.
 
Old 06-18-2005, 01:48 AM   #4
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
Old 06-22-2006, 12:33 AM   #5
RAdams
Member
 
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu
Posts: 256

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert from jre-...-rpm.bin into jre-...rpm gimi_k2 Linux - Newbie 3 07-18-2005 07:34 PM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 06:26 AM
running a ..jar file under Mandrake 10.0 official Jamel75 Linux - Software 5 09-07-2004 01:48 PM
Probs running .jar file via CGI script under Apache blimbo Programming 1 07-22-2004 11:29 AM
Installing Java running jar files jariep Red Hat 1 04-12-2004 12:11 PM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration