Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Install] Jsch->UnsupportedClassVersionError [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Cagnulein
l33t
l33t


Joined: 18 Sep 2003
Posts: 861
Location: Modena, Italy

PostPosted: Fri May 06, 2005 6:44 pm    Post subject: [Install] Jsch->UnsupportedClassVersionError [SOLVED] Reply with quote

Huge issue with jsch

when i try to compile it...:
Code:
BUILD FAILED
java.lang.UnsupportedClassVersionError: com/jcraft/jsch/UserInfo (Unsupported major.minor version 49.0)


my sun's versions:
Code:
*  dev-java/sun-jdk
      Latest version available: 1.4.2.08
      Latest version installed: 1.4.2.08
      Size of downloaded files: 35,576 kB
      Homepage:    http://java.sun.com/j2se/1.4.2/
      Description: Sun's J2SE Development Kit
      License:     sun-bcla-java-vm

*  dev-java/sun-jre-bin
      Latest version available: 1.4.2.08
      Latest version installed: 1.4.2.08
      Size of downloaded files: 14,052 kB
      Homepage:    http://java.sun.com/j2se/1.4.2/
      Description: Sun's J2SE Platform
      License:     sun-bcla-java-vm-1.4.2


current java version:
Code:
[$][localhost][~] java-config -f
sun-jdk-1.4.2.08


any tip?


Last edited by Cagnulein on Sat May 07, 2005 11:59 am; edited 1 time in total
Back to top
View user's profile Send private message
hjnenc
Veteran
Veteran


Joined: 15 Aug 2004
Posts: 1599
Location: Vienna, Austria

PostPosted: Fri May 06, 2005 7:16 pm    Post subject: Reply with quote

It seems that you have some packages around that were compiled with Java 5. Recompile them with Java 1.4.

The class file format is incompatible. That's one of the reasons why Java 5 is masked.
Back to top
View user's profile Send private message
Cagnulein
l33t
l33t


Joined: 18 Sep 2003
Posts: 861
Location: Modena, Italy

PostPosted: Fri May 06, 2005 7:24 pm    Post subject: Reply with quote

them....them...but how can i find them? :P

Thanks :D
Back to top
View user's profile Send private message
hjnenc
Veteran
Veteran


Joined: 15 Aug 2004
Posts: 1599
Location: Vienna, Austria

PostPosted: Sat May 07, 2005 4:39 am    Post subject: Reply with quote

I don't know a direct way to find them. The "genlop -l" output might be helpful.
Back to top
View user's profile Send private message
Cagnulein
l33t
l33t


Joined: 18 Sep 2003
Posts: 861
Location: Modena, Italy

PostPosted: Sat May 07, 2005 11:52 am    Post subject: Reply with quote

SOLVED!

Code:
# emerge -C jsch && emerge jsch


too simple :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum