LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-24-2005, 10:12 AM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
I get an exception when trying to start Azureus


hi im trying to get Azurues to run and this is the output i get when i try doing so.

[jeff@localhost jeff]$ bittorrent
Starting Azureus...
Java exec not found in PATH, starting auto-search...
Java exec found in /usr/java/jre1.5.0_02/bin/
Suitable java version found [/usr/java/jre1.5.0_02/bin/java = 1.5.0_02]
Configuring environment...
Loading Azureus:
/usr/java/jre1.5.0_02/bin/java -Xms16m -Xmx128m -cp "/usr/local/bin/*.jar" -Djava.library.path="/usr/local/bin" -Dazureus.install.path="/usr/local/bin" org.gudy.azureus2.ui.swt.Main ''
Exception in thread "main" java.lang.NoClassDefFoundError: org/gudy/azureus2/ui/swt/Main
Azureus TERMINATED.
[jeff@localhost jeff]$

(note: i sym linked the Azureus exec to bittorent cuz i spell Azureus different everytime i type it. lol) Does anyone know what this exception means and how i can fix it? Also what java exec is it looking for? java or java_vm? I want to know so i'll just make a sym link to it in my path so Azureus doesn't have to auto-search. thanks for your help in advance.
 
Old 05-24-2005, 10:30 AM   #2
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
try to run azureus from where you installed it and see if it works. it's a classpath issue, where azureus can't find the jar files it needs.
 
Old 05-24-2005, 10:40 AM   #3
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
that worked perfectly. Is there a way i can associate files with a sym link so that azureus will find the files it needs when i use the sym link? Would a hardlink do this? Or should i just include the path that azureus is in to the PATH variable? I assume this would be less desirable because non-root users have easy access to that directory. thanks for your quick reply by the way.
 
Old 05-24-2005, 12:50 PM   #4
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
I don't have access to my computer to check, but if I remember correctly I created a script that "cd"s to the azurues directory and run the executable. I'll post here when I find out for sure.
 
Old 05-24-2005, 01:08 PM   #5
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
thanks i didn't even think of that. I know shell scripting so i just wrote one up quick to do it. If anyone is in the same boat as me here is the script i made.

#!/bin/sh

# Change to Azureus directory and execute Azureus

cd /home/jeff/src/azureus

./azureus

exit 0

of course this will work with any program just change the directory to reflect the new program and change ./azureus to reflect the new executable. Then just make the script executable with chmod +x scriptname.sh

thanks again for the reply.
 
Old 12-14-2007, 06:18 AM   #6
redhatanirban
Member
 
Registered: Oct 2007
Posts: 44

Rep: Reputation: 0
i ve a problem with azureus: pl help.

i executed the script u wrote from webmin, it does'nt run. but it works fine from command line. i want to run azureus from webmin through my scheduled cron jobs.here is the output:
Output from command export DISPLAY=:0.0;/home/anirban/azureusscript.sh; ..

Starting Azureus...
Java exec not found in PATH, starting auto-search...
Java exec found in /usr/java/latest/bin/
Suitable java version found [/usr/java/latest/bin/java = 1.6.0_03]
Configuring environment...
Loading Azureus:
/usr/java/latest/bin/java -Xms16m -Xmx128m -cp "/home/anirban/install/azureus/Azureus2.jar:/home/anirban/install/azureus/swt.jar" -Djava.library.path="/home/anirban/install/azureus" -Dazureus.install.path="/home/anirban/install/azureus" org.gudy.azureus2.ui.swt.Main ''
changeLocale: *Default Language* != English (United States). Searching without country..
changeLocale: Searching for language English in *any* country..
changeLocale: no message properties for Locale 'English (United States)' (en_US), using 'English (default)'
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Exception in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:3589)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:836)
at org.eclipse.swt.widgets.Display.create(Display.java:824)
at org.eclipse.swt.graphics.Device.<init>(Device.java:152)
at org.eclipse.swt.widgets.Display.<init>(Display.java:472)
at org.eclipse.swt.widgets.Display.<init>(Display.java:463)
at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:91)
at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:68)
at org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Initializer.java:101)
at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:80)
at org.gudy.azureus2.ui.swt.Main.main(Main.java:203)
Azureus TERMINATED.
 
Old 12-14-2007, 07:12 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
If webmin is not running as user anirban, won't work because you need access to .Xauthority, which, if defined is readable only by anirban.
Currently it opens the security cookie of the user that has started webmin while you should use the security cookie of the user that started X.

Last edited by nx5000; 12-14-2007 at 07:14 AM.
 
Old 12-15-2007, 12:30 AM   #8
redhatanirban
Member
 
Registered: Oct 2007
Posts: 44

Rep: Reputation: 0
hi man,
i start webmin as root, and azureus as anirban .precisely, i run export DISPLAY=:0.0;/home/anirban/azureusscript.sh as user anirban. what sud i do to rectify it? pl help.TIA.
 
  


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
Tomcat Unable to Start - Exception PerfectReign Linux - Software 2 08-10-2006 05:24 PM
azureus doesn't start laurentwahl Linux - Software 3 06-16-2005 11:48 AM
can't start azureus Mathsniper Linux - Newbie 6 06-14-2005 05:03 AM
help createing exception class from base STL exception qwijibow Programming 4 04-20-2005 05:23 AM
No games will start w/ winex: Unhandled Exception sboy Linux - Games 3 10-15-2003 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:38 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
Open Source Consulting | Domain Registration