Install java sur ETCH

Le
maclin
Bonjour à tous
Sur un Debian etch j'ai installé java :
apt-get install sun-java5-jdk sun-java5-bin sun-java5-demo
Cependant les commandes java -version, javac -version et apt
repondent : -bash: java: command not found
Pourquoi ?

Bien que /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ).

if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"

que :
ls /usr/bin/j
jar javac javap javaws jinfo
jps jstat
jarsigner javadoc java-rmi.cgi jconsole jmap
jsadebugd jstatd
java javah java_vm jdb join
jstack

et que dpkg -l
java-common 0.25 Base of all Java packages
sun-java5-bin 1.5.0-10-3 Sun Java(TM) Runtime Environment (JRE) 5.0
(arch depend files)
sun-java5-demo 1.5.0-10-3 Sun Java(TM) Development Kit (JDK) 5.0 demos
and examples
sun-java5-jdk 1.5.0-10-3 Sun Java(TM) Development Kit (JDK) 5.0
sun-java5-jre 1.5.0-10-3 Sun Java(TM) Runtime Environment (JRE) 5.0
(architecture independent files)
Merci par avance de votre aide
Vidéos High-Tech et Jeu Vidéo
Téléchargements
Vos réponses
Gagnez chaque mois un abonnement Premium avec GNT : Inscrivez-vous !
Trier par : date / pertinence
Mihamina (R12y) Rakotomandimby
Le #1883060
maclin -
ls /usr/bin/j


ls -l, pour voir les permissions et propriétés, s'il te plait.

maclin
Le #1883058
On 8 avr, 13:44, "Mihamina (R12y) Rakotomandimby"
polyvalente.fr> wrote:
maclin -
ls /usr/bin/j


ls -l, pour voir les permissions et propriétés, s'il te plait.


ll /usr/bin/java*
lrwxrwxrwx 1 root root 22 2007-03-30 10:01 /usr/bin/java -> /etc/
alternatives/java
lrwxrwxrwx 1 root root 23 2007-04-01 10:04 /usr/bin/javac -> /etc/
alternatives/javac
lrwxrwxrwx 1 root root 25 2007-04-01 10:04 /usr/bin/javadoc -> /etc/
alternatives/javadoc
lrwxrwxrwx 1 root root 23 2007-04-01 10:04 /usr/bin/javah -> /etc/
alternatives/javah
lrwxrwxrwx 1 root root 23 2007-04-01 10:04 /usr/bin/javap -> /etc/
alternatives/javap
lrwxrwxrwx 1 root root 30 2007-04-01 10:04 /usr/bin/java-rmi.cgi -> /
etc/alternatives/java-rmi.cgi
lrwxrwxrwx 1 root root 25 2007-04-01 10:03 /usr/bin/java_vm -> /etc/
alternatives/java_vm
lrwxrwxrwx 1 root root 24 2007-04-01 10:03 /usr/bin/javaws -> /etc/
alternatives/javaws


maclin
Le #1883057
Y a t-il quelque-chose d'anormal ?

ll /usr/bin/java*
lrwxrwxrwx 1 root root 22 2007-03-30 10:01 /usr/bin/java -> /etc/
alternatives/java
lrwxrwxrwx 1 root root 23 2007-04-01 10:04 /usr/bin/javac -> /etc/
alternatives/javac
lrwxrwxrwx 1 root root 25 2007-04-01 10:04 /usr/bin/javadoc -> /etc/
alternatives/javadoc
lrwxrwxrwx 1 root root 23 2007-04-01 10:04 /usr/bin/javah -> /etc/
alternatives/javah
lrwxrwxrwx 1 root root 23 2007-04-01 10:04 /usr/bin/javap -> /etc/
alternatives/javap
lrwxrwxrwx 1 root root 30 2007-04-01 10:04 /usr/bin/java-rmi.cgi -> /
etc/alternatives/java-rmi.cgi
lrwxrwxrwx 1 root root 25 2007-04-01 10:03 /usr/bin/java_vm -> /etc/
alternatives/java_vm
lrwxrwxrwx 1 root root 24 2007-04-01 10:03 /usr/bin/javaws -> /etc/
alternatives/javaws


maclin
Le #1883049
On 8 avr, 16:22, "maclin"
Y a t-il quelque-chose d'anormal ?
ll /etc/alternatives/java*

lrwxrwxrwx 1 root root 23 2007-04-02 22:41 /etc/alternatives/java -> /
usr/lib/Java6/bin/java
lrwxrwxrwx 1 root root 24 2007-04-02 22:41 /etc/alternatives/javac -> /
usr/lib/Java6/bin/javac
lrwxrwxrwx 1 root root 39 2007-04-01 10:04 /etc/alternatives/javadoc -
/usr/lib/jvm/java-1.5.0-sun/bin/javadoc
lrwxrwxrwx 1 root root 58 2007-04-01 10:04 /etc/alternatives/javadoc.

1.gz -> /usr/lib/jvm/java-1.5.0-sun-1.5.0.10/man/man1/javadoc.1.gz
lrwxrwxrwx 1 root root 37 2007-04-01 10:04 /etc/alternatives/javah -> /
usr/lib/jvm/java-1.5.0-sun/bin/javah
lrwxrwxrwx 1 root root 56 2007-04-01 10:04 /etc/alternatives/javah.
1.gz -> /usr/lib/jvm/java-1.5.0-sun-1.5.0.10/man/man1/javah.1.gz
lrwxrwxrwx 1 root root 37 2007-04-01 10:04 /etc/alternatives/javap -> /
usr/lib/jvm/java-1.5.0-sun/bin/javap
lrwxrwxrwx 1 root root 56 2007-04-01 10:04 /etc/alternatives/javap.
1.gz -> /usr/lib/jvm/java-1.5.0-sun-1.5.0.10/man/man1/javap.1.gz
lrwxrwxrwx 1 root root 44 2007-04-01 10:04 /etc/alternatives/java-
rmi.cgi -> /usr/lib/jvm/java-1.5.0-sun/bin/java-rmi.cgi
lrwxrwxrwx 1 root root 43 2007-04-01 10:03 /etc/alternatives/java_vm -
/usr/lib/jvm/java-1.5.0-sun/jre/bin/java_vm
lrwxrwxrwx 1 root root 25 2007-04-02 22:41 /etc/alternatives/javaws -

/usr/lib/Java6/bin/javaws


Mais Pourquoi ??? ll /usr/lib/Java6
ls: /usr/lib/Java6: Aucun fichier
ou répertoire de ce type

ll /usr/lib/jvm/java-1.5.0-sun*
lrwxrwxrwx 1 root root 23 2007-04-01 10:03 /usr/lib/jvm/java-1.5.0-
sun -> java-1.5.0-sun-1.5.0.10

/usr/lib/jvm/java-1.5.0-sun-1.5.0.10:
total 64
drwxr-xr-x 3 root root 4096 2007-04-01 10:03 bin
lrwxrwxrwx 1 root root 13 2007-04-01 10:03 COPYRIGHT -> jre/
COPYRIGHT
drwxr-xr-x 8 root root 4096 2007-04-01 10:03 demo
drwxr-xr-x 2 root root 4096 2007-01-17 23:35 ext
drwxr-xr-x 3 root root 4096 2007-04-01 10:03 include
drwxr-xr-x 7 root root 4096 2007-04-01 10:03 jre
drwxr-xr-x 2 root root 4096 2007-04-01 10:03 lib
lrwxrwxrwx 1 root root 11 2007-04-01 10:03 LICENSE -> jre/LICENSE
drwxr-xr-x 4 root root 4096 2007-04-01 10:03 man
-rw-r--r-- 1 root root 32535 2006-12-01 05:58 README.html
drwxr-xr-x 4 root root 4096 2007-04-01 10:03 sample
lrwxrwxrwx 1 root root 31 2007-04-01 10:03
THIRDPARTYLICENSEREADME.txt -> jre/THIRDPARTYLICENSEREADME.txt

Publicité
Poster une réponse
Anonyme