Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Azueraus + Java = something isnt working right

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
Propane
n00b
n00b
User avatar
Posts: 16
Joined: Wed Oct 27, 2004 9:12 pm

Azueraus + Java = something isnt working right

  • Quote

Post by Propane » Thu Sep 08, 2005 7:50 pm

well, earlier today I emerged Azuerus-bin and it went fine

However when I go to run azueraus I get:

Code: Select all

Attempting to start Azureus...
/usr/bin/azureus: line 54: java: command not found
If you recieved an error about a missing java class, you need to setup
your classpath correctly.
This should do the trick (as root):
java-config --add-system-classpath=junit,log4j,commons-cli,systray4j
env-update && source /etc/profile

Currently, your classpath (including azureus additions) is:
swt.jar:swt-pi.jar:swt-mozilla.jar:seda.jar:Azureus2.jar:
Then this happens:

vader kevin # java-config --add-system-classpath=junit,log4j,commons-cli,systray4j
Malformed CLASSPATH in /etc/env.d/21java-classpath

any ideas?
Top
tomvollerthun
Guru
Guru
User avatar
Posts: 316
Joined: Sat Mar 19, 2005 2:56 pm

  • Quote

Post by tomvollerthun » Fri Sep 09, 2005 6:43 am

The first thing azureus complains about is that the command "java" could not be found.
Perhaps I'm confusing something, but to me that sounds as if "java" was not in your $PATH.

What is the output of these commands?

Code: Select all

which java
echo $PATH

The other error is related to the system's classpath settings.
Please post the content of /etc/env.d/21java-classpath.

cu, tom
Computer science is no more about computers than astronomy is about telescopes.
Dijsktra
---------------
Don't believe my "Guru" status!
Top
Propane
n00b
n00b
User avatar
Posts: 16
Joined: Wed Oct 27, 2004 9:12 pm

  • Quote

Post by Propane » Fri Sep 09, 2005 11:26 am

Code: Select all

kevin@vader ~ $ which java
/opt/blackdown-jdk-1.4.2.02/bin/java
kevin@vader ~ $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/kde/3.4/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.6:/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-jdk-1.4.2.02/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/bin
and the classpath is empty which I dont understand...[/code]
Top
tomvollerthun
Guru
Guru
User avatar
Posts: 316
Joined: Sat Mar 19, 2005 2:56 pm

  • Quote

Post by tomvollerthun » Fri Sep 09, 2005 11:56 am

Propane wrote:and the classpath is empty which I dont understand...
After experimenting a bit, I found the same problem.
It seems to happen when there is a package included in the file that doesn't exist in the system anymore, or perhaps it has something to do with permissions?
As a reaction, java-config seems to completely remove everything from that file, leaving it empty.

Every subsequent try to add something to the system's classpath finds that the file doesn't contain the CLASSPATH variable as it should, the error message you posted above is displayed and the file is left empty again.

A workaround to this seems to be removing the file /etc/env.d/21java-classpath .
When you then use the java-config --add-system-classpath= ... command, the file will be created and the specified packages will be registered.
Another possibility would be to add the string CLASSPATH= to the file, which then contains a valid classpath-variable: an empty one, but valid.

The downside to these workarounds is that they don't restore your original classpath settings, but you can't always win ;)

cu, tom
Computer science is no more about computers than astronomy is about telescopes.
Dijsktra
---------------
Don't believe my "Guru" status!
Top
Propane
n00b
n00b
User avatar
Posts: 16
Joined: Wed Oct 27, 2004 9:12 pm

  • Quote

Post by Propane » Fri Sep 09, 2005 9:05 pm

hmm, now Im getting another error...

Code: Select all

jc_options: Could not find package commons-cli
however the package is installed

Code: Select all

vader kevin # emerge -p commons-cli

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-java/commons-cli-1.0-r4  
vader kevin # 
Top
tomvollerthun
Guru
Guru
User avatar
Posts: 316
Joined: Sat Mar 19, 2005 2:56 pm

  • Quote

Post by tomvollerthun » Sat Sep 10, 2005 6:36 am

You can see which java-packages are actually available for addition to the classpath with

Code: Select all

java-config -l
When I do this, I find that the commons-cli package is actually registered as "commons-cli-1",
so it might work when replacing your original command with

Code: Select all

java-config --add-system-classpath=junit,log4j,commons-cli-1,systray4j
Remember that you may have to remove /etc/env.d/21java-classpath before this works.
(java-config seems to be abit buggy ;)

cu, tom
Computer science is no more about computers than astronomy is about telescopes.
Dijsktra
---------------
Don't believe my "Guru" status!
Top
Propane
n00b
n00b
User avatar
Posts: 16
Joined: Wed Oct 27, 2004 9:12 pm

Solved

  • Quote

Post by Propane » Sat Sep 10, 2005 7:08 pm

awesome! that worked perfectlly!

Thanks for your help
Top
tomvollerthun
Guru
Guru
User avatar
Posts: 316
Joined: Sat Mar 19, 2005 2:56 pm

Re: Solved

  • Quote

Post by tomvollerthun » Sun Sep 11, 2005 10:46 am

Propane wrote:awesome! that worked perfectlly! Thanks for your help
Pleasure!
Could you add something like "solved" or so to the title, please?

cu, tom
Computer science is no more about computers than astronomy is about telescopes.
Dijsktra
---------------
Don't believe my "Guru" status!
Top
el_Salmon
Guru
Guru
User avatar
Posts: 339
Joined: Mon Dec 15, 2003 10:49 pm
Location: Around 2.4GHz
Contact:
Contact el_Salmon
Website

  • Quote

Post by el_Salmon » Wed Sep 21, 2005 10:24 am

I have followed below instructions but it doesn't work for me:

Code: Select all

jaime@neworder ~ $ azureus
Attempting to start Azureus...

/usr/bin/azureus: line 54:  8231 Violación de segmento   java -cp $CLASSPATH -Djava.library.path="${AZDIR}" org.gudy.azureus2.ui.swt.Main "$1"
If you recieved an error about a missing java class, you need to setup
your classpath correctly.
This should do the trick (as root):
java-config --add-system-classpath=junit,log4j,commons-cli,systray4j
env-update && source /etc/profile

Currently, your classpath (including azureus additions) is:
swt-pi.jar:swt-mozilla.jar:swt.jar:seda.jar:Azureus2.jar:/usr/share/systray4j/lib/systray4j.jar:/usr/share/junit/lib/junit.jar:/usr/share/log4j/lib/log4j.jar:/usr/share/commons-cli-1/lib/commons-cli.jar:.
It seems that classpath is correctly, isn't it? Have you any idea?
Top
Post Reply

9 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic