Apache Directory Studio java 已启动但返回退出代码=13

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/41166731/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 23:12:32  来源:igfitidea点击:

Apache Directory Studio java was started but returned exit code=13

javaapacheapache-directory

提问by user3441151

I have to install Apache Directory Studio.

我必须安装Apache Directory Studio

For this I perform the below Steps

为此,我执行以下步骤

  1. Download ApacheDirectoryStudio-win32-x86-2.0.0.v20130628.exe

  2. Double click on ApacheDirectoryStudio-win32-x86-2.0.0.v20130628.exe and perform Next than it ask for Java Home Directory

  3. I browse and give the path C:\Program Files\Java\jdk1.8.0_60\ on Java Home Directory and perform Next Steps as Default Configuration

  1. 下载ApacheDirectoryStudio-win32-x86-2.0.0.v20130628.exe

  2. 双击 ApacheDirectoryStudio-win32-x86-2.0.0.v20130628.exe 并执行 Next 而不是它要求的 Java Home Directory

  3. 我浏览并在 Java 主目录上提供路径 C:\Program Files\Java\jdk1.8.0_60\ 并执行后续步骤作为默认配置

After complete installation of Apache Directory Studio when I try to Open Apache Directory Studio it gives the following Error

完成 Apache Directory Studio 安装后,当我尝试打开 Apache Directory Studio 时出现以下错误

enter image description here

enter image description here

I am using Java 1.8 and Windows 10.

我使用的是 Java 1.8 和 Windows 10。

采纳答案by user3441151

This has been resolved.

这已得到解决。

The issue is that, my "Apache Directory Studio" is 64bitand my "jdk" is 32bit. So I just uninstalled the jdk 32bitand installed jdk 64bit, after this issue has been fixed.

问题是,我的“Apache Directory Studio”是64bit.jdk 是32bit. 所以我只是卸载了 jdk32bit并安装了 jdk 64bit,在这个问题得到解决之后。

Thanks everyone for sharing your knowledge.

感谢大家分享您的知识。

回答by Mr.Wosch

Apache Directory Studio requires the JDK and will show that error when it tries to run on a normal JRE.

Apache Directory Studio 需要 JDK,并且在尝试在普通 JRE 上运行时会显示该错误。

Find the ApacheDirectoryStudio.ini file in the application root (e.g., in "C:\Program Files (x86)\Apache Directory Studio")

在应用程序根目录中找到 ApacheDirectoryStudio.ini 文件(例如,在“C:\Program Files (x86)\Apache Directory Studio”中)

Add or update these 2 lines in the INI (adjust the JDK path according to your setup):

在 INI 中添加或更新这两行(根据您的设置调整 JDK 路径):



  • -vm
  • C:/Program Files/Java/jdk1.8.0_60/bin
  • -vm
  • C:/Program Files/Java/jdk1.8.0_60/bin


回答by Arsalan Shahid

If you look at the second line in the error dialog screenshot, it shows the path that it is looking for the javaw.exe file. It is C:\ProgramData\Oracle\Java\javapath.

如果您查看错误对话框屏幕截图中的第二行,它会显示它正在寻找 javaw.exe 文件的路径。它是 C:\ProgramData\Oracle\Java\javapath。

If you browse to this directory you'll se that it contains three shortcuts to java.exe, javaw.exe and javas.exe. Make sure that these shortcuts are pointing to valid exe files. If not delete these shortcuts and create new ones.

如果您浏览到此目录,您会看到它包含三个指向 java.exe、javaw.exe 和 javas.exe 的快捷方式。确保这些快捷方式指向有效的 exe 文件。如果没有删除这些快捷方式并创建新的。

回答by Nadeem

Apache Directory Studio Edit the configuration file for ADS. Mine was here

Apache Directory Studio 编辑 ADS 的配置文件。我的在这里

C:\Apache Directory Studio\ApacheDirectoryStudio\ApacheDirectoryStudio

Take a backup of the file before editing it.

在编辑之前备份文件。

Add the following lines to the bottom of the file and save it.

将以下行添加到文件底部并保存。

-vm
C:\Program Files\Java\jdk1.8.0_05\bin\javaw.exe
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m

Works now :)

现在工作:)

The same technique also works for Eclipse. Just edit the eclipse configuration file in the same way. Mine was here: -

同样的技术也适用于 Eclipse。只需以相同的方式编辑 eclipse 配置文件。我的在这里:-

C:\Eclipse\eclipse\eclipse

回答by Matteo Conta

Another solution is to uninstall the 64bit Apache Directory version and to install the 32bit version, or vice versa if your first setup was the 32bit version.

另一种解决方案是卸载 64 位 Apache Directory 版本并安装 32 位版本,如果您的第一次安装是 32 位版本,则反之亦然。

Here is the windows download page for reference http://directory.apache.org/studio/download/download-windows.html

这是 Windows 下载页面供参考 http://directory.apache.org/studio/download/download-windows.html