Find the answer to your Linux question:
Results 1 to 5 of 5
I need some help, I am trying to install the Java runtime on my debian box. I found this article: http://wiki.osuosl.org/display/DEV/Java+on+Debian It says to grab the file ( jre-1_5_0_02-linux-i586.bin ) ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! zonkies's Avatar
    Join Date
    Dec 2005
    Posts
    4

    Java on debian


    I need some help, I am trying to install the Java runtime on my debian box. I found this article:

    http://wiki.osuosl.org/display/DEV/Java+on+Debian

    It says to grab the file ( jre-1_5_0_02-linux-i586.bin ) and then type in the terminal

    apt-get install java-package fakeroot

    then

    fakeroot make-jpkg jre-1_5_0_02-linux-i586.bin

    and

    dpkg -i sun-j2re1.5_1.5.0+update02_i386.deb

    then logout and type java -version to see if It installed. But my first problem is when I type in the terminal: apt-get install java-package fakeroot
    I get:

    Reading Package Lists... Done
    Building Dependency Tree... Done
    E: Couldn't find package java-package

    Any suggestions? I downloaded the file jre-1_5_0_02-linux-i586.bin, I dont know what's wrong.

  2. #2
    Linux User St. Joe's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    271
    I would suggest an easier method. Look through the search results at the unofficial apt repositories, and just add one that has the package you desire to your source list. At that point APT should handle the installation correctly.
    It may be that your sole purpose in life is simply to serve as a warning to others.

  3. #3
    Linux Enthusiast
    Join Date
    Aug 2005
    Location
    Hell
    Posts
    514
    Quote Originally Posted by zonkies
    But my first problem is when I type in the terminal: apt-get install java-package fakeroot
    I get:

    Reading Package Lists... Done
    Building Dependency Tree... Done
    E: Couldn't find package java-package

    Any suggestions? I downloaded the file jre-1_5_0_02-linux-i586.bin, I dont know what's wrong.
    You need to add the "contrib" to your /etc/apt/sources.list; e.g.
    Code:
    deb http://ftp.us.debian.org/debian sarge main contrib non-free
    See this guide for more detailed instructions for installing Java using java-package.

  4. #4
    Just Joined!
    Join Date
    Dec 2003
    Location
    Greece
    Posts
    43
    Hi zonkies,

    The easier and most effective way is to install JAVA using the following method:

    Download SDK or JRE from Sun (java.sun.com)
    execute the bin file (./jdk1.5.0_06.bin)
    then execute the following commands:

    mv jdk1.5.0_06 /usr/local/
    ln -s /usr/local/jdk1.5.0_06 /usr/local/java

    Then edit the /etc/profile and add the following:
    export JAVA_PATH=/usr/local/java

    If you do not want to reboot the PC then simply issue the same command (export JAVA_PATH=/usr/local/java) from the shell and JAVA is installed.

    Cheers

  5. #5
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2
    In my case the following command works:
    Code:
    export PATH=$PATH:"/usr/local/java/bin"

Posting Permissions

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