Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > Help & Support
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Help & Support Information on the useage and anything else of Phex
- Unless you are using or asking about PHEX, please do not post in this section
(Get ”Phex 3.4.2.163 universal" now)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old July 29th, 2008
Novicius
 
Join Date: August 3rd, 2006
Posts: 3
mpajoh is flying high
Default 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.
Reply With Quote
  #2 (permalink)  
Old July 30th, 2008
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

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
__________________
Reply With Quote
  #3 (permalink)  
Old July 31st, 2008
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

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
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
  #4 (permalink)  
Old July 31st, 2008
Novicius
 
Join Date: August 3rd, 2006
Posts: 3
mpajoh is flying high
Default

Quote:
Originally Posted by arne_bab View Post
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.

Last edited by mpajoh; July 31st, 2008 at 03:52 PM.
Reply With Quote
  #5 (permalink)  
Old July 31st, 2008
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

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.
__________________
Reply With Quote
  #6 (permalink)  
Old July 31st, 2008
Novicius
 
Join Date: August 3rd, 2006
Posts: 3
mpajoh is flying high
Default

Quote:
Originally Posted by GregorK View Post
...

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 02:43 PM.


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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.