java.lang.UnsupportedClassVersionError: com/mslv/oms/useradmin/OSMEncryptionMgmt : Unsupported major.minor version (Doc ID 2016862.1)

Last updated on NOVEMBER 25, 2016

Applies to:

Oracle Communications Order and Service Management - Version 7.2.4 and later
Information in this document applies to any platform.
***Checked for relevance on 25-Nov-2016***

Symptoms

I am installing O2A Cartridges for 7.2.4.1 applications but when running the command to encrypt passwords ( ant create-osm-admin-server-xmlie-encrypted-password-properties-file ), I receive the following error:

D:\OSM
O2A\OracleComms_OSM_O2A_CartridgesInstaller_2.1.0.1.0.999\headlessBuild>ant create-osm-admin-server-xmlie-encrypted-password-properties-file
Buildfile: D:\OSMO2A\OracleComms_OSM_O2A_CartridgesInstaller_2.1.0.1.0.999\headlessBuild\build.xml

  create-osm-admin-server-xmlie-encrypted-password-properties-file:

  wls_username:
    [input] Please Enter the Admin User Name:
weblogic

  wls_password:
  Please enter the password for user wlsadmin:
  Please enter the same password again for user wlsadmin:

wls_system:

  create-xmlie-encrypted-password-properties-file:
[propertyfile] Updating property file: D:\OSM
O2A\OracleComms_OSM_O2A_CartridgesInstaller_2.1.0.1.0.999\headlessBuild\securi
ty\osm_admin_server.xmlie.propert
     [java] java.lang.UnsupportedClassVersionError:
com/mslv/oms/useradmin/OSMEncryptionMgmt : Unsupported major.minor version51.0
     [java]     at java.lang.ClassLoader.defineClass1(Native Method)
     [java]     at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
     [java]     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
     [java]     at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
     [java]     at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
     [java] Could not find the main class: com.mslv.oms.useradmin.OSMEncryptionMgmt.  Program will exit.
     [java] Exception in thread "main"

BUILD FAILED
D:\OSM
O2A\OracleComms_OSM_O2A_CartridgesInstaller_2.1.0.1.0.999\headlessBuild\build.
xml:565: The following error occurred while executing this line:
D:\OSM
O2A\OracleComms_OSM_O2A_CartridgesInstaller_2.1.0.1.0.999\headlessBuild\build.
xml:561: The following error occurred while executing this line:
D:\OSM
O2A\OracleComms_OSM_O2A_CartridgesInstaller_2.1.0.1.0.999\headlessBuild\build.
xml:401: Java returned: 1

Total time: 30 seconds

 

This might seem that it needs Java 1.7.

I have the following:
  - build.properties: jdk.home=C:\Program Files\Java\jdk1.7.0_75
  - Path: I have Java 1.7. set In Environment Variables(please see attachment)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms