Fix Apache Directory Studio Java

If you are using Zentyal Server, ApacheDS, LDAP or AD then chances are you have probably used Apache Directory Studio. If not, you may want to take a look here. Apache Directory Studio is an awesome tool for editing ApacheDS, LDAP and AD Databases. With that said, if you have been using it for any period of time, then chances are, you have seen the error pictured below. apache-java-errorAs you can see, Java is a requirement to successfully run Apache Directory Studio. The problem is when you install a fresh copy of Apache Directory Studio, it creates a file in the root of its Program Files directory that provides the path to the version of Java installed on your computer. This file is aptly named, Apache Directory Studio.ini. In this file you will see the path to Java as outlined below.

-vm
C:\Program Files (x86)\Java\jre1.8.0_40\bin

In order to fix Apache Directory Studio, simply edit the file above to point to the path of your updated version of Java. If you don’t want to mess with editing the file every time Java gets updated, you also have the option of copying the Java directory under the root of Apache Directory Studio and then pointing to that as seen below.

-vm
jre1.8.0_45\bin
Note: It must be noted that if you choose to copy Java to the Apache Directory Studio root, you will be on a fixed version of Java until you repeat the procedure as outlined above.
Did you find this article useful? Why not share it with your friends?

2 thoughts on “Fix Apache Directory Studio Java

  1. This helped me to fix Apache Directory Studio after changing from Oracle Java to OpenJDK from RedHat. Startup failed with message that openjdk failed to load the jni shared library jvm.dll, referring to C:\Program Files (x86).
    Thereby it was messing up 32 bit from openjdk with 64 bit Apache Directory Studio on a 64 bit Windows 10 machine.
    After implementing the lines with -vm pointing to c:\Program Files, it was all on 64 bit and started up right away again!
    Thanks!!

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.