lock Running Modelio on a MacOS X workstation

2 years 7 months ago - 1 month 3 weeks ago #3990 by pan
Modelio requires that a JDK 8 be installed to work properly (not only JRE) JDK 8 download page .

For MacOS X, no installation is provided. Just unzip the downloaded archive and use Modelio.

Some Mac users have stumbled across this annoying error when starting Modelio on MacOS X



The most common reason for that error is a too recent version of the JDK.

After JDK 8 has been installed on your OS and Modelio archive has been unzipped, the Modelio 3.x app/Contents/Eclipse/modelio.ini file (replace x by the minor version of Modelio that you have downloaded. For Modelio 3.8, you should edit Modelio 3.8/Contents/Eclipse/modelio.ini) must be updated.

You can do it manually by following the steps below (manual procedure) or you can use a shell script provided at the bottom of this post (automatic procedure).

*** Manual procedure ***
You should have this content:
-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.401.v20161122-1740
-clearPersistedState
-vmargs
-Xms512m
-Dpython.console.encoding=UTF-8
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
In order to launch Modelio you should add
-vm 
/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java
after -clearPersistedState
and
-Dosgi.requiredJavaVersion=1.8
after -vmargs
so you have the following result
-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.401.v20161122-1740
-clearPersistedState
-vm 
/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms512m
-Dpython.console.encoding=UTF-8
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
Please note that this line /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java should be adapted according to your own configuration.
More information about this workaround: wiki.eclipse.org/Configure_Eclipse_for_J...e_for_Java_9_modules
*** End of Manual procedure ***

*** Automatic procedure ***
For your convenience, we made a script in order to make these changes automatically. Unzip this archive in the same folder as Modelio 3.x app.

File Attachment:

File Name: fixModelio.zip
File Size:1 KB
It contains scripts for different versions of Modelio. Just run once the right script that matches your version of Modelio in a Terminal.
For example bash .fixModelio38.sh for Modelio 3.8

*** End of Automatic procedure ***

If you continue to have problems after checking these points please provide us your configuration so we can help efficiently:
- Version of Modelio
- Version of your MacOS
- List of JDKs installed on your systems
- What returns java -version?
Attachments:
The topic has been locked.
Moderators: oslcde
Time to create page: 0.138 seconds
^ Back to Top