美文网首页
ApacheDirectoryStudio

ApacheDirectoryStudio

作者: 天草二十六_简村人 | 来源:发表于2021-08-20 17:28 被阅读0次

在mac升级后报错加下:

Failed to create the Java Virtual Machine.

解决方案:
cd /Applications/ApacheDirectoryStudio.app/Contents

vi Info.plist

增加jvm的环境变量:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/bin/java</string>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plist version="1.0">

<dict>
    <key>CFBundleExecutable</key>
        <string>ApacheDirectoryStudio</string>
    <key>CFBundleGetInfoString</key>
        <string>Eclipse 4.8 for Mac OS X, Copyright IBM Corp. and others 2002, 2017. All rights reserved.</string>
    <key>CFBundleIconFile</key>
        <string>studio.icns</string>
    <key>CFBundleIdentifier</key>
        <string>org.apache.directory.studio.product</string>
    <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
    <key>CFBundleName</key>
        <string>ApacheDirectoryStudio</string>
    <key>CFBundlePackageType</key>
        <string>APPL</string>
    <key>CFBundleShortVersionString</key>
        <string>2.0.0</string>
    <key>CFBundleSignature</key>
        <string>????</string>
    <key>CFBundleVersion</key>
        <string>2.0.0.v20180908-M14</string>
    <key>NSHighResolutionCapable</key>
        <true/>
    <key>CFBundleDevelopmentRegion</key>
        <string>English</string>        
    <key>Eclipse</key>
        <array>
            <!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options,
                    or add a VM found via $/usr/libexec/java_home -V
                <string>-vm</string><string>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java</string>
                <string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>
            -->
            <string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/bin/java</string>
            <string>-keyring</string>
      <string>~/.eclipse_keyring</string>
        </array>
<key>CFBundleDisplayName</key>
    <string>ApacheDirectoryStudio</string>
  </dict>

</plist>

相关文章

  • ApacheDirectoryStudio

    在mac升级后报错加下: 解决方案:cd /Applications/ApacheDirectoryStudio....

网友评论

      本文标题:ApacheDirectoryStudio

      本文链接:https://www.haomeiwen.com/subject/newtiltx.html