Hi there,

This is a minor bug, but a big annoyance for anyone who uses java on Fedora. Latter I try to register on Fedora Project bug track.

I saw the same issue on two diferent systems: one upgraded from F17 to F19 via fedup, another installed clean from live media. Both had yum -y update after installation. Both were 32-bit machines, I did not test on x86_64.

"java" is not on the classpath after install, altough java-1.7.0-openjdk comes installed by default. See [ I hope eveyone can understand this termina session even if it's in portuguese:

 

[root@lgx200 ~]# java -version
bash: java: Comando não encontrado...


[root@lgx200 ~]# yum -y install java-1.7.0-openjdk icedtea-web
Plugins carregados: langpacks, refresh-packagekit
updates/19/i386/metalink                                      | 1.8 kB  00:00:00     
O pacote 1:java-1.7.0-openjdk-1.7.0.25-2.3.10.4.fc19.i686 já está instalado em sua última versão
O pacote icedtea-web-1.4-2.fc19.i686 já está instalado em sua última versão
Nada a ser feito


So I checked alternaives:

 

root@lgx200 ~]# alternatives --config java

Há 3 programas que oferecem "java".

  Seleção    Comando
-----------------------------------------------
*+ 1           /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
   2           /usr/lib/jvm/jre-1.5.0-gcj/bin/java
   3           /usr/lib/jvm/jre-1.7.0-openjdk.i386/bin/java

Indique para manter a seleção atual[+] ou digite o número da seleção:

There was a default java configured, but there's nothing on the path specified by [1]:

[lozano@lgx200 ~]$ ls /usr/lib/jvm/
java-1.5.0-gcj-1.5.0.0/           jre-1.5.0/
java-1.7.0-openjdk-1.7.0.25.i386/ jre-1.5.0-gcj/
java-1.7.0-openjdk.i386/          jre-1.7.0-openjdk.i386/
jre/                              jre-gcj/

I fixed this issue by running alternatives --config again, then choosing [3]. Now "java" works on the shell.

I guess there should be no "/usr/lib/jvm/jre-1.7.0-openjdk/bin/java" in alternatives, or this path should be a symlink to /usr/lib/jvm/jre-1.7.0-openjdk.i386/bin/java, in which case there shouldn't be this latest option in alternatives.

Maybe the intent was to have 32-bit and 64-bit OpenJDK on the same machine, and allow the user to choose each one as the default java.

 

[]s, Fernando Lozano