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 ) ...
- 01-08-2006 #1
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.
- 01-08-2006 #2
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.
- 01-08-2006 #3Linux Enthusiast
- Join Date
- Aug 2005
- Location
- Hell
- Posts
- 514
You need to add the "contrib" to your /etc/apt/sources.list; e.g.
Originally Posted by zonkies
See this guide for more detailed instructions for installing Java using java-package.Code:deb http://ftp.us.debian.org/debian sarge main contrib non-free
- 01-08-2006 #4Just 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
- 10-02-2010 #5Just Joined!
- Join Date
- Aug 2010
- Posts
- 2
In my case the following command works:
Code:export PATH=$PATH:"/usr/local/java/bin"



