All Apps and Add-ons

SA-ldapsearch - how to upgrade java / openjdk to 1.7.x on linux?

Jason
Motivator

I'm running RedHat linux, trying to use SA-ldapsearch to query AD, but am getting the following odd error:

$ ../../bin/splunk cmd python SA-ldapsearch/bin/ldapsearch.py
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/splunk/program/LDAPSearch : Unsupported major.minor version 51.0
at ...
...
Could not find the main class: com.splunk.program.LDAPSearch. Program will exit.

I think my java is out of date.

$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment 
...

However I can't seem to get this OpenJDK updated, what is the command?

0 Karma
1 Solution

Jason
Motivator

This worked for me (as root):

# yum install java-1.7.0-openjdk
... installed ...
... back to Splunk user and folder ...
$ java -version    
java version "1.7.0_25"
OpenJDK Runtime Environment ...

View solution in original post

0 Karma

Jason
Motivator

This worked for me (as root):

# yum install java-1.7.0-openjdk
... installed ...
... back to Splunk user and folder ...
$ java -version    
java version "1.7.0_25"
OpenJDK Runtime Environment ...
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...