Find the answer to your Linux question:
Results 1 to 8 of 8
I have installed Sun Java and java-plugin with Debian repos and apt-get. I have Java plugin in IceWeasel. 'whereis java' results in: ~# whereis java java: /etc/java /usr/share/java In 'usr/share' ...
  1. #1
    Just Joined!
    Join Date
    Dec 2005
    Posts
    66

    Java not working.

    I have installed Sun Java and java-plugin with Debian repos and apt-get.
    I have Java plugin in IceWeasel. 'whereis java' results in:

    ~# whereis java
    java: /etc/java /usr/share/java

    In 'usr/share' I have these listed:

    /usr/share# ls
    java
    java-1.5.0-sun-1.5.0.10
    java-config
    java-package

    'update-alternatives --config java' results in:

    ~# update-alternatives --config java

    There are 2 alternatives which provide `java'.

    Selection Alternative
    -----------------------------------------------
    *+ 1 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
    2 /usr/bin/gij-wrapper-4.1

    Press enter to keep the default[*], or type selection number:

    Then 'java -version' results in:

    ~# java -version
    -su: java: command not found

    When I try to start Azureus:

    /usr/bin# ./azureus
    ./azureus: line 3: /usr/share/java-config/libswt-3.2-java: No such file or directory

    What can I do to get Java to work?

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    Hi Red Knuckles,

    I'm not real educated with java but I'll give it a shot:

    Have you checked to see if libswt-3.2-java is actually in /usr/share/java-config? I'm wondering if Azurius is looking for it where it isn't. I'd look in /usr/lib/jvm/java-1.5.0-sun and see if it's there...
    Linux Mint + IceWM Registered:#371367 New Members: click here

  3. #3
    Just Joined!
    Join Date
    Dec 2005
    Posts
    66
    Quote Originally Posted by Dapper Dan
    Hi Red Knuckles,

    I'm not real educated with java but I'll give it a shot:

    Have you checked to see if libswt-3.2-java is actually in /usr/share/java-config? I'm wondering if Azurius is looking for it where it isn't. I'd look in /usr/lib/jvm/java-1.5.0-sun and see if it's there...
    Here's what I find:

    /usr/share/java-config# ls
    libswt-gtk-3.2-java

    /usr/lib/jvm# ls
    java-1.5.0-sun java-1.5.0-sun-1.5.0.10

    /usr/lib/jvm/java-1.5.0-sun# ls
    bin demo ext jre LICENSE README.html src.zip
    COPYRIGHT docs include lib man sample THIRDPARTYLICENSEREADME.txt

    /usr/lib/jvm/java-1.5.0-sun-1.5.0.10# ls
    bin demo ext jre LICENSE README.html src.zip
    COPYRIGHT docs include lib man sample THIRDPARTYLICENSEREADME.txt

    Obviously I'm not real educated with java either. Yet.

  4. #4
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    Which Debian version are you using ?

    How did you install Java ?

    How did you install Azureus ?
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  5. #5
    Just Joined!
    Join Date
    Dec 2005
    Posts
    66

    Talking

    I'm using Debian Etch [I believe that's 4.0].

    It was a java problem. Found the answer at these 2 posts:

    http://www.linuxquestions.org/questi...d.php?t=443680
    http://forums.debian.net/viewtopic.php?t=10870

    I installed jave using rickh's How To @ LinusQuestions.org. I then installed Azureus using Synaptic.

    ~$ java -version
    java version "1.5.0_10"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)

    Azureus version:2.5.0.0

    :o

  6. #6
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    I am confused, did you got it to work ?

    What I can tell you is this.

    The easiest and most reliable way to install Java is using java-package. I described the exact method on my blog :
    http://wizah.blogspot.com/2005/12/de...suns-java.html

    As for Azureus, I don't like using the Debian package, as I had some trouble with it in the past.

    Download the .tar.bz2 binary package from Azureus official site.

    As it is a binary package, you don't need to compile anything, simply uncompress it, /opt/ for example :

    (as root)
    Code:
     
    cd /opt
    tar jxf /path/to/Azureus_2.5.0.0_linux.tar.bz2
    Then make a shortcut for it (as root) :
    Code:
    nano /usr/share/applications/Azureus.desktop
    With this content :
    Code:
    [Desktop Entry]
    Name=Azureus
    Comment=Java BitTorrent Client
    Exec=/opt/azureus/azureus
    Icon=/opt/azureus/Azureus.png
    Terminal=false
    Type=Application
    Categories=Application;Network;
    At least that's how I do it.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  7. #7
    Just Joined!
    Join Date
    Dec 2005
    Posts
    66
    Sorry, not meaning to confuse. Yes, I got it to work. I installed Sun Java using this link:

    http://www.linuxquestions.org/questi...d.php?t=443680

    Although your link looks like it may have been easier. Thanks.

  8. #8
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    Ok, no problem.

    Have fun !
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •