Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Help & Support (https://www.gnutellaforums.com/help-support/)
-   -   cannot run phex on Fedora 9 X86_64 (https://www.gnutellaforums.com/help-support/86490-cannot-run-phex-fedora-9-x86_64-a.html)

mpajoh July 29th, 2008 06:39 PM

cannot run phex on Fedora 9 X86_64
 
when I try to run phex on Fedora 9 X86_64 with all the updates I get:
Code:

[phex]$ java -jar lib/phex.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: phex/Main (Unsupported major.minor version 49.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader*****run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

and here is the java version:
Code:

[phex]$ java -version
java version "1.4.2-03"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-03)
Java HotSpot(TM) 64-Bit Server VM (build Blackdown-1.4.2-03, mixed mode)

phex ran fine on Fedora 8 on the same hardware!

What am I doing wrong!
Sorry if this a FAQ, I tried and could find and/or understand the answer.
If it is a FAQ just point me in the direction of the URL.

Thanks for any help.

GregorK July 30th, 2008 01:48 AM

Phex requires at least Java 5 to run, Java 6 is fine too. This is since Phex 3.0
I would recommend to install the Sun Java package, Phex is not tested with other Java packages and I not sure if it would run.

http://www.phex.org/wiki/index.php/Java

arne_bab July 31st, 2008 12:04 PM

Just check in yum if you can install java 1.6:

Quote:

su -c "yum install java-1.6.0-openjdk"
JavaFAQ - FedoraProject

Happy sharing!
Arne

mpajoh July 31st, 2008 03:35 PM

Quote:

Originally Posted by arne_bab (Post 324140)
Just check in yum if you can install java 1.6:
Code:

su -c "yum install java-1.6.0-openjdk"
JavaFAQ - FedoraProject

Happy sharing!
Arne

I do have that installed:

Code:

[masoud]$ rpm -qa|grep openj
openjade-1.3.2-31.fc9.x86_64
java-1.6.0-openjdk-plugin-1.6.0.0-0.16.b09.fc9.x86_64
java-1.6.0-openjdk-1.6.0.0-0.16.b09.fc9.x86_64

I still cannot run Phex!

An here is more info:
Code:

[masoud]$ sudo /usr/sbin/alternatives --config java

There are 3 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
  1          /usr/lib/jvm/jre-1.5.0-gcj/bin/java
 + 2          /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
*  3          /opt/jre1.6/bin/java

Enter to keep the current selection[+], or type selection number:

Thanks for all the help.

GregorK July 31st, 2008 03:55 PM

Do I understand you right? You have a jre plugin for Firefox installed?
If this is a complete JRE installation you should be able to use this JRE for Phex too. You might just need to find out the JRE installation directory and call inside the phex installation directory something like:
/path_to_jre/bin/java -jar lib/phex.jar

Edit
Try to call:
/opt/jre1.6/bin/java -jar lib/phex.jar

I assume /opt/jre1.6/bin/java is just linked to /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

Apparently the java in your env path is a 1.4.2 installation, even though you have a more up-to-date installation available.

mpajoh July 31st, 2008 08:05 PM

Quote:

Originally Posted by GregorK (Post 324152)
...

Edit
Try to call:
/opt/jre1.6/bin/java -jar lib/phex.jar

....

You hit the nail on the head that worked perfectly.

Thanks a lot.

Masoud


All times are GMT -7. The time now is 01:25 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.