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.

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.

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?

Leave a Reply

Your email address will not be published. Required fields are marked *

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