I have installed java7
but when I use ldapsearch command,it returns errors like the following:
- at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
Exception in thread "main"
External search command 'ldapsearch' returned error code 1.
java.lang.UnsupportedClassVersionError: com/splunk/program/LDAPSearch : Unsupported major.minor version 52.0
Believe I have the same issue as well.
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/splunk/program/LDAPSearch : Unsupported major.minor version 52.0
External search command 'ldapsearch' returned error code 1.
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
Running version 1.1.12 of the app.
Thanks,
Thanks for your patience.
We have recompiled SA-ldapsearch 1.1.12 with Java 1.7. If you re-download the SA-ldapsearch 1.1.12 (the latest at http://apps.splunk.com/app/1151), then you will get the updated version that works on Java 1.7
I'm having this issue too. I have a support case into Splunk asking about this, but I believe that one of their jars was compiled with a version higher than the current 1.7.0_55 Java version (version 51.0). When extracting some of the jars and looking in their manifest files, I noticed customcommands.jar was compiled by Java version 1.8.0-b132, which I believe is only available on the Oracle site right now and matches as version 52.0 due to some searching around I did.
There's no indication that the app requires Java 8 at this time - at least from what I saw - but I could be wrong and this could be a new requirement.
I'll post an answer here with what we do.
Thank you! Will the fix come in the form of a new version update or will you just comment in this thread when it's fixed?
Appreciate it.
This should not be required. I'll get it fixed.
I think you are right.
I have download jre-8u5 and install it, the the problem has been solved.
Thank you.