LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fedora won't find my installed java (http://www.linuxquestions.org/questions/linux-newbie-8/fedora-wont-find-my-installed-java-741137/)

anotherpenguin 07-19-2009 03:32 AM

fedora won't find my installed java
 
ok so I installed java

Code:

[natsume@localhost ~]$ rpm -qiv jre
Name        : jre                          Relocations: /usr/java
Version    : 1.6.0_14                          Vendor: Sun Microsystems, Inc.
Release    : fcs                          Build Date: Thu 21 May 2009 15:57:32 IST
Install Date: Sat 18 Jul 2009 07:36:49 IST      Build Host: jdk-lin-amd64.sfbay.sun.com
Group      : Development/Tools            Source RPM: jre-1.6.0_14-fcs.src.rpm
Size        : 48546447                        License: Sun Microsystems Binary Code License (BCL)
Signature  : (none)
Packager    : Java Software <jre-comments@java.sun.com>
URL        : http://java.sun.com/
Summary    : Java(TM) Platform Standard Edition Runtime Environment
Description :
The Java Platform Standard Edition Runtime Environment (JRE) contains
everything necessary to run applets and applications designed for the
Java platform. This includes the Java virtual machine, plus the Java
platform classes and supporting files.

The JRE is freely redistributable, per the terms of the included license.

but it won't work

Code:

[natsume@localhost ~]$ java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

all i wanted was to install frostwire

Code:

[natsume@localhost ~]$ frostwire
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
sh: unpack200: command not found
Traceback (most recent call last):
  File "/usr/lib/frostwire/unpack200.py", line 58, in <module>
    makeHashes()
  File "/usr/lib/frostwire/unpack200.py", line 17, in makeHashes
    output = file('hashes','w')
IOError: [Errno 13] Permission denied: 'hashes'
HOSTNAME IS localhost.localdomain
Starting FrostWire...
Java exec found in PATH. Verifying...
OOPS, you don't seem to have a valid JRE. FrostWire works best with Sun JRE available at http://www.java.com [java = Error]
You need to upgrade to JRE 1.5.x or newer from http://www.java.com
OOPS, unable to locate java exec in  /usr/lib/  hierarchy
You need to upgrade to JRE 1.5.x or newer from http://www.java.com
Java exec found in  /usr/java/jre1.6.0_14/bin/
Suitable java version found  [/usr/java/jre1.6.0_14/bin/java = 1.6.0_14]
Configuring environment...
Loading FrostWire:
CLASSPATH SET TO:
Unable to access jarfile FrostWire.jar

/usr/java/jre1.6.0_14/bin/
******************************************************************
Something went wrong with FrostWire.
Maybe you're using the wrong version of Java?
(FrostWire is tested against and works best with with Sun's JRE, Java 1.4+)
The version of Java in your PATH is:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

Hope it will give some clue what is going on.
Please help I'm new to linux.

stress_junkie 07-19-2009 08:52 AM

From http://www.linuxquestions.org/questi...3/#post3612199
Quote:

I'm running *buntu 8.04 and Java 1.6.0.14 that lives at /usr/lib/java-6-sun-1.6.0.14. The executable is jre.

I am ALSO running kaffe 1.4.2 which lives at /usr/bin. The executable is named java.

The two seem compatible. OOo sees the genuine Sun Java while everything else sees the kaffe imposter.
In the above quote the genuine Sun Java Runtime Environment is provided by an executable name jre.

Default Java is provided by an open source imposter named kaffe. The executable for this is named java.

You may want to install kaffe as I did. I cannot vouch for the performance because I disable java in my web browser and I rarely run a Java application. I have had no problems using kaffe the few times that I have run a Java based application.


All times are GMT -5. The time now is 03:20 AM.