www.smartbusinesschoices.com

Leading Business and Technology,
News and information


Part of the Identityscape.com network...

getxfactor.com jmoodmusic.com smartbusinesschoices.com mintdepot.com lowfaresalways.com evangelicalview.com shoppingpodder.com soproudlywehail.com webnews.ws currenthumor.com

 

 

[gentoo-user] Java "bad version number" - what to up/downgra
   Smart Linux Business Choices! - the Best of UseNet Postings! Forum Index -> Linux - Gentoo Forum  
View previous topic :: View next topic  
Author Message
Grant
Guest






PostPosted: Tue Nov 18, 2008 7:40 am    Post subject: [gentoo-user] Java "bad version number" - what to up/downgra Reply with quote

I'm getting the following from dumphd:

"bad version number in .class file"

I gather that I may have the wrong version of something Java installed
but I don't know how that works. Can anyone tell me what package I
should try upgrading or downgrading?

- Grant
Back to top
Shawn Haggett
Guest






PostPosted: Tue Nov 18, 2008 8:10 am    Post subject: Re: [gentoo-user] Java "bad version number" - what to up/dow Reply with quote

On Tue, 18 Nov 2008 12:04:53 pm Grant wrote:
Quote:
I'm getting the following from dumphd:

"bad version number in .class file"

I gather that I may have the wrong version of something Java installed
but I don't know how that works. Can anyone tell me what package I
should try upgrading or downgrading?

This normally means the class file is from a new version of Java then the
virtual machine trying to run it (i.e. class files compiled under Java 1.5,
but your trying to run it in Java 1.4).

"java-config -L" (without quotes) will show you what virtual machines you have
installed. On my machine it shows (the asterisk is the currently selected
one, i.e. what will be used to run java applications):

podge@venus ~ $ java-config -L
The following VMs are available for generation-2:
1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2) Sun JDK 1.5.0.16 [sun-jdk-1.5]
*) Sun JDK 1.6.0.07 [sun-jdk-1.6]
podge@venus ~ $

If the newest VM isn't selected as the default, read the man page for
java-config and tell it to set the newest one as default (1.6 is the newest
version).

Shawn
Back to top
Shawn Haggett
Guest






PostPosted: Tue Nov 18, 2008 8:29 am    Post subject: Re: [gentoo-user] Java "bad version number" - what to up/dow Reply with quote

On Tue, 18 Nov 2008 02:56:57 pm Grant wrote:
Quote:
I'm getting the following from dumphd:

"bad version number in .class file"

I gather that I may have the wrong version of something Java installed
but I don't know how that works. Can anyone tell me what package I
should try upgrading or downgrading?

This normally means the class file is from a new version of Java then the
virtual machine trying to run it (i.e. class files compiled under Java
1.5, but your trying to run it in Java 1.4).

"java-config -L" (without quotes) will show you what virtual machines you
have installed. On my machine it shows (the asterisk is the currently
selected one, i.e. what will be used to run java applications):

podge@venus ~ $ java-config -L
The following VMs are available for generation-2:
1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2) Sun JDK 1.5.0.16 [sun-jdk-1.5]
*) Sun JDK 1.6.0.07 [sun-jdk-1.6]
podge@venus ~ $

If the newest VM isn't selected as the default, read the man page for
java-config and tell it to set the newest one as default (1.6 is the
newest version).

Shawn

Thank you very much. Since I'm not a Java developer, do I want jre as
opposed to jdk?

- Grabt

Yeah, the JRE will be fine. The important thing is just which version is
active. I do Java development, hence the JDK.

Shawn
Back to top
Grant
Guest






PostPosted: Tue Nov 18, 2008 8:29 am    Post subject: Re: [gentoo-user] Java "bad version number" - what to up/dow Reply with quote

Quote:
I'm getting the following from dumphd:

"bad version number in .class file"

I gather that I may have the wrong version of something Java installed
but I don't know how that works. Can anyone tell me what package I
should try upgrading or downgrading?

This normally means the class file is from a new version of Java then the
virtual machine trying to run it (i.e. class files compiled under Java 1.5,
but your trying to run it in Java 1.4).

"java-config -L" (without quotes) will show you what virtual machines you have
installed. On my machine it shows (the asterisk is the currently selected
one, i.e. what will be used to run java applications):

podge@venus ~ $ java-config -L
The following VMs are available for generation-2:
1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2) Sun JDK 1.5.0.16 [sun-jdk-1.5]
*) Sun JDK 1.6.0.07 [sun-jdk-1.6]
podge@venus ~ $

If the newest VM isn't selected as the default, read the man page for
java-config and tell it to set the newest one as default (1.6 is the newest
version).

Shawn

Thank you very much. Since I'm not a Java developer, do I want jre as
opposed to jdk?

- Grabt
Back to top
Grant
Guest






PostPosted: Wed Nov 19, 2008 9:40 pm    Post subject: Re: [gentoo-user] Java "bad version number" - what to up/dow Reply with quote

Quote:
I'm getting the following from dumphd:

"bad version number in .class file"

I gather that I may have the wrong version of something Java installed
but I don't know how that works. Can anyone tell me what package I
should try upgrading or downgrading?

This normally means the class file is from a new version of Java then
the
virtual machine trying to run it (i.e. class files compiled under Java
1.5, but your trying to run it in Java 1.4).

"java-config -L" (without quotes) will show you what virtual machines
you
have installed. On my machine it shows (the asterisk is the currently
selected one, i.e. what will be used to run java applications):

podge@venus ~ $ java-config -L
The following VMs are available for generation-2:
1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2) Sun JDK 1.5.0.16 [sun-jdk-1.5]
*) Sun JDK 1.6.0.07 [sun-jdk-1.6]
podge@venus ~ $

If the newest VM isn't selected as the default, read the man page for
java-config and tell it to set the newest one as default (1.6 is the
newest version).

Shawn

Thank you very much. Since I'm not a Java developer, do I want jre as
opposed to jdk?

- Grabt

Yeah, the JRE will be fine. The important thing is just which version is
active. I do Java development, hence the JDK.

Shawn

Can you tell me the best way to Gentoo all of this? I've now got:

# java-config -L
The following VMs are available for generation-2:
1) Sun 32bit JRE 1.6.0.07 [emul-linux-x86-java-1.6]
2) Sun JDK 1.5.0.16 [sun-jdk-1.5]
*) Sun JDK 1.6.0.07 [sun-jdk-1.6]

and dev-java/sun-jdk in my world file, and it wasn't there before.
Also, emerge world wants to install virtual/jre-1.6.0 and
virtual/jdk-1.6.0. Should I un-emerge sun-jdk-1.5?

- Grant
Back to top
Display posts from previous:   
   Smart Linux Business Choices! - the Best of UseNet Postings! Forum Index -> Linux - Gentoo Forum  
Page 1 of 1
All times are GMT

 
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