Java Programming

Need help with C, C++, perl, python, etc?

Java Programming

Postby miller0521 » 2006-08-21 15:57

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?
miller0521
 
Posts: 60
Joined: 2006-04-07 19:01

Postby kink » 2006-08-21 16:14

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.
User avatar
kink
Debian Developer, Site Admin
Debian Developer, Site Admin
 
Posts: 287
Joined: 2006-01-02 16:47
Location: Utrecht, The Netherlands

Postby miller0521 » 2006-08-21 16:24

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.


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.

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?
miller0521
 
Posts: 60
Joined: 2006-04-07 19:01

Postby kink » 2006-08-21 22:03

Yeah, it's in 'non-free'.
User avatar
kink
Debian Developer, Site Admin
Debian Developer, Site Admin
 
Posts: 287
Joined: 2006-01-02 16:47
Location: Utrecht, The Netherlands

Postby miller0521 » 2006-08-22 00:33

kink wrote:Yeah, it's in 'non-free'.


How do I enable that?
miller0521
 
Posts: 60
Joined: 2006-04-07 19:01

Postby Lavene » 2006-08-22 05:56

Just add 'non-free' to the testing (or etc) line in your /etc/apt/sources.list like this:
Code: Select all
deb ftp://ftp.no.debian.org/debian/ etch main contrib non-free


Tina
Lavene
Site admin
 
Posts: 5096
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Postby miller0521 » 2006-08-22 09:55

Lavene wrote:Just add 'non-free' to the testing (or etc) line in your /etc/apt/sources.list like this:
Code: Select all
deb ftp://ftp.no.debian.org/debian/ etch main contrib non-free


Tina


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.
miller0521
 
Posts: 60
Joined: 2006-04-07 19:01

Postby miller0521 » 2006-08-31 22:06

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.


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.
miller0521
 
Posts: 60
Joined: 2006-04-07 19:01

Postby thialme » 2006-09-01 07:19

Lavene wrote:Just add 'non-free' to the testing (or etc) line in your /etc/apt/sources.list like this:
Code: Select all
deb ftp://ftp.no.debian.org/debian/ etch main contrib non-free


Tina


I did that way afterwards :
Code: Select all
apt-get install fakeroot java-package

and then
Code: Select all
fakeroot make-jpkg jre-1_5_0_07-linux-i586.bin

in order to get a .deb from a.bin, with the latest release I found. Then, I installed it :
Code: Select all
dpkg -i sun-j2re1.5_1.5.0+update07_i386.deb
User avatar
thialme
 
Posts: 6
Joined: 2006-06-05 15:37
Location: France

Postby miller0521 » 2006-09-01 12:03

thialme wrote:
Lavene wrote:Just add 'non-free' to the testing (or etc) line in your /etc/apt/sources.list like this:
Code: Select all
deb ftp://ftp.no.debian.org/debian/ etch main contrib non-free


Tina


I did that way afterwards :
Code: Select all
apt-get install fakeroot java-package

and then
Code: Select all
fakeroot make-jpkg jre-1_5_0_07-linux-i586.bin

in order to get a .deb from a.bin, with the latest release I found. Then, I installed it :
Code: Select all
dpkg -i sun-j2re1.5_1.5.0+update07_i386.deb


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?
miller0521
 
Posts: 60
Joined: 2006-04-07 19:01

Postby tarcisio » 2006-09-03 00:12

kink wrote:Yeah, it's in 'non-free'.


I did'nt understand the issue, well I mean, a need of .deb package to
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
User avatar
tarcisio
 
Posts: 4
Joined: 2006-09-02 03:23

Postby Lavene » 2006-09-03 05:40

tarcisio wrote:I did'nt understand the issue, well I mean, a need of .deb package to
install Sun j2re.... ... ...
tarcisio


There are lots of advantages to install stuff through apt when available from a repository. Automatic updates, dependency handeling, automatic removal etc etc...

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 :P ) but it really is the preferred way on Debian systems.

Tina
Lavene
Site admin
 
Posts: 5096
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Re: Java Programming

Postby lorebett » 2006-09-10 10:42

miller0521 wrote:I am wondering whats the easiest way to install the j2re environment from Sun, just download the binary?


I've always used sun binaries without problems
User avatar
lorebett
 
Posts: 21
Joined: 2006-08-23 13:54

Re: Java Programming

Postby miller0521 » 2006-11-26 20:46

lorebett wrote:
miller0521 wrote:I am wondering whats the easiest way to install the j2re environment from Sun, just download the binary?


I've always used sun binaries without problems


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.
miller0521
 
Posts: 60
Joined: 2006-04-07 19:01


Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable