Skip to main content

Hi,

 

I'm trying to set up anypoint studio on my new Mac.

 

I've downloaded the file AnypointStudio-for-macosx-64bit-7.3.3-201905011643.zip and installed to my applications.

 

I have also downloaded and installed OpenJDK8U-jdk_x64_mac_openj9_8u212b03_openj9-0.14.0.tar.gz and installed as per instructions.

I did the same with the JRE file.

 

When I launched Anypoint, the mac told me I needed to download a legacy java runtime - which I did.

It then told me that the legacy version 1.6 was not enough, as 1.7 was required.

 

So, I have been searching the internet and tweaking settings - to no avail.

 

My current config is:

 

From Terminal

 

java -version:

 

openjdk version "1.8.0_212"

OpenJDK Runtime Environment (build 1.8.0_212-b03)

Eclipse OpenJ9 VM (build openj9-0.14.0, JRE 1.8.0 Mac OS X amd64-64-Bit Compressed

References 20190417_217 (JIT enabled, AOT enabled)

OpenJ9 - bad1d4d06

OMR - 4a4278e6

JCL - 5590c4f818 based on jdk8u212-b03)

 

which java

 

/usr/bin/java

 

/usr/libexec/java_home -v 1.8

 

/Library/Java/JavaVirtualMachines/adoptopenjdk-8-openj9.jdk/Contents/Home

 

From Application

from within Applications "show package contents"

 

Info.plist

 

<key>CFBundleDevelopmentRegion</key>

<string>English</string>

<key>Eclipse</key>

<array>

<string>-vm</string>

<string>/Library/Java/JavaVirtualMachines/adoptopenjdk-8-openj9.jdk/Contents/Home/jre/lib/server/libjvm.dylib</string>

<string>-keyring</string>

<string>~/.eclipse_keyring</string>

</array>

<key>CFBundleDisplayName</key>

<string>AnypointStudio</string>

 

AnyypointStudio.ini

 

--launcher.library

../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.551.v20171108-1834

-vm

/Library/Java/JavaVirtualMachines/adoptopenjdk-8-openj9.jdk/Contents/Home

-vmargs

--add-modules=ALL-SYSTEM

-Xms512m

-Xmx1024m

-XX:MaxPermSize=512m

 

However, whenever I launch - I am still getting "Alert - Failed to create the Java Virtual Machine".

 

I'm new to Mac so probably doing something stupid, but I'm not sure what.

Does anybody have any pointers?

 

Thanks,

4 个回答
  1. 2019年5月16日 14:35

    @gopale

    Thanks for your continued support.

    I had set the path, but it didn't work either.

     

    However, I've been persevering with this issue a lot today - and now finally have it working.

     

    It turned out the issue appears to be the use of openj9.

    I downloaded the hotspot version of adopt open JDK, and updated all of my configuration that states "adoptopnjdk-8-openj9.jdk" to "adoptopenjdk-8.jdk" and it is now firing up OK.

     

    So if anybody else is looking at adopt, I would recommend starting with Hotspot JVM.

0/9000