[389-users] java error on 389-console command

Paul Robert Marino pmarino at snap-interactive.com
Mon Sep 12 20:25:01 UTC 2011


On 9/9/2011 2:54 PM, Paul Robert Marino wrote:
> On 9/9/2011 2:51 PM, Rich Megginson wrote:
>> On 09/09/2011 12:50 PM, Paul Robert Marino wrote:
>>> On 9/9/2011 2:42 PM, Rich Megginson wrote:
>>>> On 09/09/2011 12:38 PM, Paul Robert Marino wrote:
>>>>> On 9/9/2011 2:31 PM, Rich Megginson wrote:
>>>>>> On 09/09/2011 12:11 PM, Paul Robert Marino wrote:
>>>>>>> a couple of days a ago I did a yum update on one of my boxes. 
>>>>>>> one of the
>>>>>>> thing that updated was the 389-console rpm
>>>>>>>
>>>>>>> now every time i try to run it i get an error
>>>>>>>
>>>>>>> "
>>>>>>> The java class could not be loaded.
>>>>>>> java.lang.UnsupportedClassVersionError:
>>>>>>> (com/netscape/management/client/console/Console) bad major 
>>>>>>> version at
>>>>>>> offset=6
>>>>>>> "
>>>>>>>
>>>>>>> this is the version it updated to
>>>>>>> "
>>>>>>> rpm -qf /usr/bin/389-console
>>>>>>> 389-console-1.1.7-1.el6.noarch
>>>>>>> "
>>>>>> rpm -qi idm-console-framework
>>>>>  rpm -qi idm-console-framework
>>>>> Name        : idm-console-framework        Relocations: (not 
>>>>> relocatable)
>>>>> Version     : 1.1.7                             Vendor: Fedora 
>>>>> Project
>>>>> Release     : 2.el6                         Build Date: Tue 21 Jun 
>>>>> 2011 03:16:23 PM CDT
>>>>> Install Date: Fri 09 Sep 2011 12:59:50 PM CDT      Build Host: 
>>>>> x86-11.phx2.fedoraproject.org
>>>>> Group       : System Environment/Libraries   Source RPM: 
>>>>> idm-console-framework-1.1.7-2.el6.src.rpm
>>>>> Size        : 1242916                          License: LGPLv2
>>>>> Signature   : RSA/8, Thu 23 Jun 2011 08:14:51 AM CDT, Key ID 
>>>>> 3b49df2a0608b895
>>>>> Packager    : Fedora Project
>>>>> URL         : http://port389.org
>>>>> Summary     : Identity Management Console Framework
>>>>> Description :
>>>>> A Java Management Console framework used for remote server 
>>>>> management.
>>>> Which java are you using?
>>>> java -version
>>>  which java
>>> /usr/bin/java
>>>  ll /usr/bin/java
>>> lrwxrwxrwx 1 root root 22 Sep  6 10:24 /usr/bin/java -> 
>>> /etc/alternatives/java
>>>  ll /etc/alternatives/java
>>> lrwxrwxrwx 1 root root 42 Sep  6 10:24 /etc/alternatives/java -> 
>>> /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/java
>>>  rpm -qf /usr/lib/jvm/jre-1.6.0-sun.x86_64/bin/java
>>> java-1.6.0-sun-1.6.0.26-1jpp.1.el6.x86_64
>> Can you try the openjdk instead?
>> yum install java-1.6.0-openjdk
>> alternatives --config java
>
> $ java -version
> java version "1.6.0_20"
> OpenJDK Runtime Environment (IcedTea6 1.9.8) 
> (rhel-1.39.1.9.8.el6_1-x86_64)
> OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
> [pmarino at admin01 ~]$ 389-console
> The java class could not be loaded. 
> java.lang.UnsupportedClassVersionError: 
> (com/netscape/management/client/console/Console) bad major version at 
> offset=6
> $
>
>>>
>>>
>>>>>
>>>>>>> I am currently running
>>>>>>> Red Hat Enterprise Linux Server release 6.1 (Santiago)
>>>>>>> x86_64
>>>>>>>
>>>>>>> is there a know bug or issue that can be worked around that 
>>>>>>> might cause this
>>>>>>>
>>>>>>> -- 
>>>>>>> 389 users mailing list
>>>>>>> 389-users at lists.fedoraproject.org
>>>>>>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>>>>>>
>>>>>
>>>>
>>>
>>
>
I figured out what the problem was

it was in the /etc/alternatives directory
despite changing the java version using "alternatives --config java"  
there was still a symlink "java_sdk -> /usr/lib/jvm/java-1.5.0-ibm.x86_64"
this symlink was bing set by one of the scripts as part of the path for 
java libraries I determined i didn't really need java-1.5.0-ibm-devel so 
i erased the package via yum it and now i works.





More information about the 389-users mailing list