Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Java Programming
-
- Posts: 60
- Joined: 2006-04-07 19:01
Java Programming
I am wondering whats the easiest way to install the j2re environment from Sun, just download the binary or is there a repo for debian out there that contains a .deb package for it?
- kink
- Debian Developer, Site Admin
- Posts: 248
- Joined: 2006-01-02 16:47
- Location: Utrecht, The Netherlands
- Been thanked: 1 time
It's currently only in unstable (sid) but will be in testing (etch) in a few days. The package is called 'sun-java5-jre' You can try if it runs on stable and/or backport it. I'm not aware of an exising backport.
Otherwise, you can use the 'java-package' package. That has instructions on how to download and debianify the jre from Sun.
Otherwise, you can use the 'java-package' package. That has instructions on how to download and debianify the jre from Sun.
-
- Posts: 60
- Joined: 2006-04-07 19:01
If its going to come into testing in a few days I can wait for that. I am happy to hear that anyways, I was under the impression Debian would never have the sun package available.kink wrote:It's currently only in unstable (sid) but will be in testing (etch) in a few days. The package is called 'sun-java5-jre' You can try if it runs on stable and/or backport it. I'm not aware of an exising backport.
Otherwise, you can use the 'java-package' package. That has instructions on how to download and debianify the jre from Sun.
Also is there another repo I need to enable, like a non-free or a contrib or something? Or are there only one for testing?
-
- Posts: 60
- Joined: 2006-04-07 19:01
Just add 'non-free' to the testing (or etc) line in your /etc/apt/sources.list like this:
Tina
Code: Select all
deb ftp://ftp.no.debian.org/debian/ etch main contrib non-free
-
- Posts: 60
- Joined: 2006-04-07 19:01
Thank you very much this has been really helpful. I was unable to find any other repo's other than the one my system installed with.Lavene wrote:Just add 'non-free' to the testing (or etc) line in your /etc/apt/sources.list like this:TinaCode: Select all
deb ftp://ftp.no.debian.org/debian/ etch main contrib non-free
-
- Posts: 60
- Joined: 2006-04-07 19:01
Is there a way to tell when it will be in testing? I've got the non free enabled and still haven't see java sun come through yet.kink wrote:It's currently only in unstable (sid) but will be in testing (etch) in a few days. The package is called 'sun-java5-jre' You can try if it runs on stable and/or backport it. I'm not aware of an exising backport.
Otherwise, you can use the 'java-package' package. That has instructions on how to download and debianify the jre from Sun.
I did that way afterwards :Lavene wrote:Just add 'non-free' to the testing (or etc) line in your /etc/apt/sources.list like this:TinaCode: Select all
deb ftp://ftp.no.debian.org/debian/ etch main contrib non-free
Code: Select all
apt-get install fakeroot java-package
Code: Select all
fakeroot make-jpkg jre-1_5_0_07-linux-i586.bin
Code: Select all
dpkg -i sun-j2re1.5_1.5.0+update07_i386.deb
-
- Posts: 60
- Joined: 2006-04-07 19:01
Yea I heard that I could do it that way as well, but I was told it would be in testing in a couple days, so its probably best to wiat for that correct?thialme wrote:I did that way afterwards :Lavene wrote:Just add 'non-free' to the testing (or etc) line in your /etc/apt/sources.list like this:TinaCode: Select all
deb ftp://ftp.no.debian.org/debian/ etch main contrib non-free
and thenCode: Select all
apt-get install fakeroot java-package
in order to get a .deb from a.bin, with the latest release I found. Then, I installed it :Code: Select all
fakeroot make-jpkg jre-1_5_0_07-linux-i586.bin
Code: Select all
dpkg -i sun-j2re1.5_1.5.0+update07_i386.deb
I did'nt understand the issue, well I mean, a need of .deb package tokink wrote:Yeah, it's in 'non-free'.
install Sun j2re.
I have installed from the page of Sun with no debianization and it works
prety well. Install it at /usr/java and it will be oficial java of your
machine. I have it at /usr/local/bin and have done
sudo ln -s /usr/local/bin/jre1.5.0_07/bin/java /usr/java
and
chmod a+x /usr/java
tarcisio
tarcisio praciano-pereira
http://www.sobralmatematica.org
http://www.sobralmatematica.org
There are lots of advantages to install stuff through apt when available from a repository. Automatic updates, dependency handeling, automatic removal etc etc...tarcisio wrote:I did'nt understand the issue, well I mean, a need of .deb package to
install Sun j2re.... ... ...
tarcisio
You don't *need* everything to be installed from a deb (to be honest I have installed jre from Sun's .bin my self... don't tell anyone ) but it really is the preferred way on Debian systems.
Tina
Re: Java Programming
I've always used sun binaries without problemsmiller0521 wrote:I am wondering whats the easiest way to install the j2re environment from Sun, just download the binary?
-
- Posts: 60
- Joined: 2006-04-07 19:01
Re: Java Programming
I can install the binary with no problems, thats fine with me. I am however wondering why the repo has Update 8 and not Update 9... I had heard update 8 was pulled by sun very quickly because of some major issues.lorebett wrote:I've always used sun binaries without problemsmiller0521 wrote:I am wondering whats the easiest way to install the j2re environment from Sun, just download the binary?