"java.lang.UnsupportedClassVersionError: Bad version number in .class file" stacktrace at startup of "groovysh"
This bug report was converted into a question: question #195822: Why do I get "java.lang.UnsupportedClassVersionError: Bad version number in .class file" stacktrace at startup of "groovysh"?.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
groovy (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
$ groovysh
java.lang.
at java.lang.
at java.lang.
at java.security.
at java.net.
at java.net.
at java.net.
at java.security.
at java.net.
at org.codehaus.
at org.codehaus.
at java.lang.
at java.lang.
at java.lang.
at java.lang.
at org.codehaus.
at org.codehaus.
at org.codehaus.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at org.codehaus.
at org.codehaus.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: groovy 2.0.0~beta2+
ProcVersionSign
Uname: Linux 3.2.0-24-generic i686
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
Date: Thu May 3 12:11:55 2012
InstallationMedia: Kubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitec
ProcEnviron:
LANGUAGE=
TERM=xterm
PATH=(custom, user)
LANG=nb_NO.UTF-8
SHELL=/bin/bash
SourcePackage: groovy
UpgradeStatus: Upgraded to precise on 2012-04-27 (6 days ago)
It seems to happen because I have JAVA_HOME set to a Java SDK 5.x and not 6.x.