# 3 façons d'installer Java JRE/JDK pour Debian

**URL:** <https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113>\
**Category:** Trucs et Astuces\
**Created:** [Février 20, 2016, 12:36 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113 "2016-02-20T12:36:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghostintheshell](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/g/a88e57/32.png) [@ghostintheshell](https://www.debian-fr.org/u/ghostintheshell)\
**Post date:** [Février 20, 2016, 12:36 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/1 "2016-02-20T12:36:40Z")

</div>

3 façons d’installer Java JRE/JDK pour Debian

Voici un excellent how-to qui consiste en la présentation de 3 façons différentes pour installer Java JRE  
(Runtime Environment) et/ou JDK (Developer Kit) pour Debian.

[wiki.serios.net/wiki/Debian\_Java … stallation](http://wiki.serios.net/wiki/Debian_Java_JRE/JDK_installation)

---

<div class="post-metadata">

**Author:** ![ghostintheshell](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/g/a88e57/32.png) [@ghostintheshell](https://www.debian-fr.org/u/ghostintheshell)\
**Post date:** [Février 20, 2016, 12:36 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/2 "2016-02-20T12:36:42Z")

</div>

1/ With java-package/make-jpkg

For e.g. the Sun Java there are no prepackaged deb archives of it. I have written detailed instructions on how to install a Java JRE or JDK with java-package by creating a deb archive of the JRE/JDK .bin installation file.

```
* [url=http://wiki.serios.net/wiki/Debian_Java_JRE/JDK_installation_with_java-package]Debian Java JRE/JDK installation with java-package[/url]

```

This method applies for:

```
* Sun Java 5.0 (x86, AMD64)
* Sun Java 1.4 (x86)
* IBM Java 5.0 (x86, AMD64, PowerPC, PowerPC64, S/390)
* IBM Java 1.4 (x86, AMD64, PowerPC, PowerPC64, S/390)
* IBM Java 1.3 (x86, PowerPC, S/390)
* Blackdown Java 1.4 (x86, AMD64, SPARC)
* Blackdown Java 1.3 (x86, PowerPC) 

```

Quick summary of the procedure for the impatient, please read the full document for all details:

```
Download JRE/JDK .bin or .tgz archive file from Sun, Blackdown, or IBM 

```

` apt-get install java-package
    fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
    dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb`

2/ Installing from APT repositories containing Java packages

There are prepackaged JREs/JDKs available for Sun and IBM JRE/JDK 5.0 from a third party repository — [Debian Unofficial](http://www.debian-unofficial.org/).

```
* [url=http://wiki.serios.net/wiki/Debian_Java_JRE/JDK_installation_from_APT_repositories]Debian Java JRE/JDK installation from APT repositories[/url]

```

This method applies for:

```
* Sun Java 5.0 (x86)
* IBM Java 5.0 (x86, PowerPC) 

```

Quick summary of the procedure for the impatient, please read the full document for all details:

```
Edit or add repositories into the APT sources file

```

` apt-get update
    apt-get install sun-j2se5.0-jre-binary`

3/ Manual installation

If you are using some platform that isn’t supported by java-package/make-jpkg, or if you just simply don’t want to use the above two methods for whatever reasons you may have, you can install the JRE/JDK more “manually” too.

The main drawback of installing with this “manual” method is that the JRE/JDK won’t automatically get integrated with the Debian’s package management, so you’ll run into problems if you try to install something that depends on Java, e.g. Tomcat. One can create dummy packages though to make the dependencies appear as if they are fulfilled.

Generally, I do not recommend this unless the two above described methods absolutely don’t work for you.

```
* [url=http://wiki.serios.net/wiki/Debian_Java_JRE/JDK_installation_manually]Debian Java JRE/JDK installation manually[/url]

```

This method applies for:

```
* Sun Java 5.0 (x86, AMD64)
* Sun Java 1.4 (x86)
* IBM Java 5.0 (x86, AMD64, PowerPC, PowerPC64, S/390)
* IBM Java 1.4 (x86, AMD64, PowerPC, PowerPC64, S/390)
* IBM Java 1.3 (x86, PowerPC, S/390)
* Blackdown Java 1.4 (x86, AMD64, SPARC)
* Blackdown Java 1.3 (x86, PowerPC)
* ... and most likely any other version or architecture of the available Sun, IBM and Blackdown JRE/JDKs as well. 

```

(…)

[wiki.serios.net/wiki/Debian\_Java … stallation](http://wiki.serios.net/wiki/Debian_Java_JRE/JDK_installation)

Enjoy 8)

---

<div class="post-metadata">

**Author:** ![burinho](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@burinho](https://www.debian-fr.org/u/burinho)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/3 "2016-02-20T12:46:01Z")

</div>

[code] apt-get install java-package  
fakeroot make-jpkg jre-1\_5\_0\_06-linux-i586.bin  
dpkg -i sun-j2re1.5\_1.5.0+update06\_i386.deb

[/code]

je comprens j’arrive pas à installer le java-package, par hasard il faut mettre un truc en plus des sourcs.list

---

<div class="post-metadata">

**Author:** ![mattotop](https://www.debian-fr.org/user_avatar/www.debian-fr.org/mattotop/32/3942_2.png) [@mattotop](https://www.debian-fr.org/u/mattotop)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/4 "2016-02-20T12:46:01Z")

</div>

comment ceux tu qu’on le sache ? 😆

---

<div class="post-metadata">

**Author:** ![burinho](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@burinho](https://www.debian-fr.org/u/burinho)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/5 "2016-02-20T12:46:01Z")

</div>

dans mes soruces j’ai ceci  
je suis en amd64 sous sarge

[code]#deb file:///cdrom/ sarge main

deb ftp://ftp.crans.org/debian-amd64//debian stable main  
deb-src ftp://ftp.crans.org/debian-amd64//debian stable main

deb [http://security.debian.org/](http://security.debian.org/) stable/updates main  
[/code]

---

<div class="post-metadata">

**Author:** ![ghostintheshell](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/g/a88e57/32.png) [@ghostintheshell](https://www.debian-fr.org/u/ghostintheshell)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/6 "2016-02-20T12:46:01Z")

</div>

`$ apt-cache policy java-package
java-package:
  Installed: 0.27
  Candidate: 0.27
  Version table:
 *** 0.27 0
        500 http://ftp.fr.debian.org testing/contrib Packages
        500 http://ftp.fr.debian.org unstable/contrib Packages
        100 /var/lib/dpkg/status`

---

<div class="post-metadata">

**Author:** ![mattotop](https://www.debian-fr.org/user_avatar/www.debian-fr.org/mattotop/32/3942_2.png) [@mattotop](https://www.debian-fr.org/u/mattotop)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/7 "2016-02-20T12:46:01Z")

</div>

donc, tu rajoutes contrib partout, et pendant que tu y es non-free, à la suite de main…

---

<div class="post-metadata">

**Author:** ![burinho](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@burinho](https://www.debian-fr.org/u/burinho)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/8 "2016-02-20T12:46:02Z")

</div>

donc si je comprend bien il va falloir que je rajoute ces lignes

[code]deb ftp://ftp.crans.org/debian-amd64//debian contrib  
deb ftp://ftp.crans.org/debian-amd64//debian non free

[/code]

---

<div class="post-metadata">

**Author:** ![mattotop](https://www.debian-fr.org/user_avatar/www.debian-fr.org/mattotop/32/3942_2.png) [@mattotop](https://www.debian-fr.org/u/mattotop)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/9 "2016-02-20T12:46:02Z")

</div>

non ce n’est pas ce que j’ai dit. mais ça peut aussi suffire à étendre tes sources.  
Par contre, si tu arrives à installer java-package, AMA `fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb` ne va pas te produire un paquet exploitable, parceque tu n’es pas en x86.

---

<div class="post-metadata">

**Author:** ![ghostintheshell](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/g/a88e57/32.png) [@ghostintheshell](https://www.debian-fr.org/u/ghostintheshell)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/10 "2016-02-20T12:46:03Z")

</div>

[quote=“burinho”]donc si je comprend bien il va falloir que je rajoute ces lignes

[code]deb ftp://ftp.crans.org/debian-amd64//debian contrib  
deb ftp://ftp.crans.org/debian-amd64//debian non free

[/code][/quote]

tu peux tout mettre à la suite

un peu de recherche et lecture que diantre -\> cfr [forum.debian-fr.org/viewtopic.php?t=1810](http://forum.debian-fr.org/viewtopic.php?t=1810)

ce qui donnerait dans ton cas:

```auto

```

(pourquoi “//” après le “amd64” au fait?)

quote="MattOTop"  
Par contre, si tu arrives à installer java-package, AMA `fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb` ne va pas te produire un paquet exploitable, parceque tu n’es pas en x86.[/quote]

c’est pour ça qu’il faut telecharger la version AMD64 du JRE ( ici par exemple: [www-128.ibm.com/developerworks/j … nload.html](http://www-128.ibm.com/developerworks/java/jdk/linux/download.html) ) et avec un peu de jugeotte remplacer i586 par amd64 dans les lignes de commande (enfin, par le nom du package quoi).

bonne merdouille 😲

---

<div class="post-metadata">

**Author:** ![ghostintheshell](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/g/a88e57/32.png) [@ghostintheshell](https://www.debian-fr.org/u/ghostintheshell)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/11 "2016-02-20T12:46:03Z")

</div>

nomdijiou de crévindiou!!  
apprenez à faire une recherche et à lire avant de poser des questions!! je desespere là!! 😲

[wiki.serios.net/wiki/Debian\_Java … \_for\_AMD64](http://wiki.serios.net/wiki/Debian_Java_JRE/JDK_installation_with_java-package#About_the_Java_for_AMD64)

[quote]  
2.1 [size=134]About the Java for AMD64[/size]

You need to be using a 64-bit AMD64 version of Debian to be able to use the Java for the AMD64. If you are using a 32-bit x86 version of Debian on an AMD64 processor using system, download the Java for the 32-bit x86 version.

Also worth noting, the Sun Java 1.5.0 for AMD64 doesn’t have the Java web browser plugin currently available, so for browsers that access Java through that plugin, one cannot currently view Java applets with the Sun Java 1.5.0 for AMD64. I suggest using the Blackdown Java 1.4.2 for AMD64 if you want to have Java support in such browsers.

bla bla bla … etc etc etc …[/quote]

et donc, je l’ecris en grand pour les suivants:

[size=184]Java JRE et/ou JDK pour AMD64 c’est par ici[/size]  
==\> [wiki.serios.net/wiki/Debian\_Java … \_for\_AMD64](http://wiki.serios.net/wiki/Debian_Java_JRE/JDK_installation_with_java-package#About_the_Java_for_AMD64) \<==

et je m’en va me tuer now 😢

---

<div class="post-metadata">

**Author:** ![burinho](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@burinho](https://www.debian-fr.org/u/burinho)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/12 "2016-02-20T12:46:05Z")

</div>

😊

désolé mais moi et l’anglais ça fait 2,  
donc il semblerais d’apès ton post qu’il faudrait utilisé la version 1.4 sous amd 64

---

<div class="post-metadata">

**Author:** ![burinho](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@burinho](https://www.debian-fr.org/u/burinho)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/13 "2016-02-20T12:46:06Z")

</div>

C’est incroyable dés qu’il faut installé un truc avec les sources j’y arrive jamais, déjà avec openoffice2.

là j’ai suivis cette démarche

```auto
apt-get install java-package
```

ça c’est ok

au préalable j’ai télécharger k-1\_5\_0\_05-linux-amd64.bin

```auto
fakeroot make-jpkg jdk-1_5_0_05-linux-amd64.bin
```

et la ça passe plus

which will allow no damage to be done to your system files and  
still permit the Java distribution to successfully extract.

---

<div class="post-metadata">

**Author:** ![fran.b](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/f/d78d45/32.png) [@fran.b](https://www.debian-fr.org/u/fran.b)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/14 "2016-02-20T12:46:07Z")

</div>

Tu as un paquet java que j’ai fait pour amd64 sur

deb [boisson.homeip.net/amd64/](http://boisson.homeip.net/amd64/) sarge ./

tu peux le récupérer si tu veux.

---

<div class="post-metadata">

**Author:** ![burinho](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@burinho](https://www.debian-fr.org/u/burinho)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/15 "2016-02-20T12:46:07Z")

</div>

Oui je veux bien,  
c’est le 1.5

---

<div class="post-metadata">

**Author:** ![burinho](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@burinho](https://www.debian-fr.org/u/burinho)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/16 "2016-02-20T12:46:11Z")

</div>

bon j’ai capitulé mon jdk 1.5 par manque de temps je dois bosser sur du java

donc j’ai installé free-java-sdk dispo sur sarge

```auto

SableVM version 1.11.3
- compile date and time: 2005-04-14 01:57:03 UTC
- gcc version: 3.3.5 (Debian 1:3.3.5-12)
- 'real life brokenness' features enabled
- copying garbage collection
- bidirectional object layout
- direct-threaded interpreter
```

je suis quand même frustré, car je sais qu’utilisé des paquet proposer par debian, dés qu’il faut utilisé les sources ça marche pas

---

<div class="post-metadata">

**Author:** ![fran.b](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/f/d78d45/32.png) [@fran.b](https://www.debian-fr.org/u/fran.b)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/17 "2016-02-20T12:46:11Z")

</div>

make-jpkg, alien ne travaille pas sur des sources mais sur des binaires afin de les adapter à la distribution Debian. Travailler sur les sources, c’est autre chose, pas nécessairement plus compliqué d’ailleurs…

---

<div class="post-metadata">

**Author:** ![burinho](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@burinho](https://www.debian-fr.org/u/burinho)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/18 "2016-02-20T12:46:12Z")

</div>

c’étais bien un binaire mais j’y suis pas arrivé, je sais pas trop j’ai péché

---

<div class="post-metadata">

**Author:** ![sebiseb](https://www.debian-fr.org/user_avatar/www.debian-fr.org/sebiseb/32/4245_2.png) [@sebiseb](https://www.debian-fr.org/u/sebiseb)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/19 "2016-02-20T12:46:13Z")

</div>

[quote=“MattOTop”]`fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb`[/quote]  
fakeroot qu’il faut lancer en tant qu’utilisateur (et non root) me semble-t-il ne se trouve pas le paquet jre-1\_5\_0\_06-linux-i586.bin… Peut être n’est pas la même version qui a été installé sur ma machine après le apt-get install ? Ou puis-je retrouver ce fichier et connaître sa version ?

---

<div class="post-metadata">

**Author:** ![ghostintheshell](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/g/a88e57/32.png) [@ghostintheshell](https://www.debian-fr.org/u/ghostintheshell)\
**Post date:** [Février 20, 2016, 12:46 UTC](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113/20 "2016-02-20T12:46:13Z")

</div>

[quote=“sebiseb”][quote=“MattOTop”]`fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb`[/quote]  
fakeroot qu’il faut lancer en tant qu’utilisateur (et non root) me semble-t-il ne se trouve pas le paquet jre-1\_5\_0\_06-linux-i586.bin… Peut être n’est pas la même version qui a été installé sur ma machine après le apt-get install ? Ou puis-je retrouver ce fichier et connaître sa version ?[/quote]

dis, tu le fais expres?

fakeroot est fait justement pour ne pas devoir proceder à l’installation en tant que root (acronyme de “fake” et de “root”). donc oui, il FAUT lancer la commande en tant qu’utilisateur.  
quant à jre-1\_5\_0\_06-linux-xxx.bin c’est le fichier que tu as téléchargé sur l’un des sites mentionnés (sun, ibm, …). donc, si tu ne le trouve pas, cherche encore 😃

okay?

[Page suivante](https://www.debian-fr.org/t/3-facons-dinstaller-java-jre-jdk-pour-debian/3113.md?page=2)
