Have you ever faced an error while launching Apache Directory Studio? I faced this error recently on my MAC OS.
I open the log file to check the error message, it was so confusing. Error message was something like this:
P.S. Click here to access my other posts.
Problem:
I was using Apache Directory Studio for past few months without any issues, but yesterday all of a sudden I was getting below error while I was attempting to launch Apache Directory Studio application on my MAC. Note that I am using Apache Directory Studio version 2.0.0.v20130628I open the log file to check the error message, it was so confusing. Error message was something like this:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!MESSAGE FrameworkEvent ERROR | |
!STACK 0 | |
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.common_3.6.100.v20120522-1841 [1]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4 | |
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332) | |
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316) | |
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323) | |
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390) | |
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176) | |
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) | |
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) | |
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) | |
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) | |
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) | |
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) | |
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) | |
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) | |
Root Cause:
I recently installed latest Java version i.e. Java 9 on my MAC and I encountered this issue due to the Java version upgrade. The error message in the log file is bit misleading.Solution:
To resolve this issue, you can follow below mentioned steps:- Click here and refer my other post to install multiple versions of Java on your MAC OS.
- Make sure you install Java 7 on your MAC OS.
- Execute this command to get the Java 7 location: /usr/libexec/java_home -v 1.7
- Now open Finder and click on Applications
- Next, locate Apache Directory Studio.app and right click
- Select Show Package Contents
- Go to Contents >> MacOS folder
- Create ApacheDirectoryStudio.ini file if not present already
- Add following contents (note that there are two lines) and save the file.
- Now, when you attempt to open Apache Directory Studio, it should open without any issues.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-vm | |
<Java_7_Location>/bin | |
Comments
Post a Comment