[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: F9 "/usr/bin/java is not owned by any package" - huh?

David wrote:
Newbie question: I'm surprised by the rpm -qf response: "file
/usr/bin/java is not owned by any package" below.
Is it a bug? Should I report it? Where?
Or am I missing something?
I'm on dialup so I don't have the latest version of everything. If you
do, is it the same on your system?

Currently I have zero knowledge of java, I just want to try freemind re:

[root kablamm ~]# java -version
java version "1.6.0"
OpenJDK  Runtime Environment (build 1.6.0-b09)
OpenJDK Client VM (build 1.6.0-b09, mixed mode)

[root kablamm ~]# which java

[root kablamm ~]# rpm -qf /usr/bin/java
file /usr/bin/java is not owned by any package

[root kablamm ~]# uname -r

[root kablamm ~]# rpm -qa 'java*'


This is most likely because you are using the alternatives system with Java.

If you type  alternatives --config java as root it will show you the versions of Java you have installed.  In my case its

There are 3 programs which provide 'java'.
  Selection    Command
*  1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
   2           /usr/java/jdk1.6.0_10/bin/java
 + 3           /opt/jdk1.6.0_10/bin/java

So /usr/bin/java is a link that is created by the alternatives system rather that a specific rpm

In my case doing
rpm -qf /usr/lib/jvm/jre-1.4.2-gcj/bin/java  --- java-1.4.2-gcj-compat-
 rpm -qf   /usr/java/jdk1.6.0_10/bin/java --- jdk-1.6.0_10-fcs.x86_64

I hope this helps :)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]