(Apparantly, this was successfully tested on AMD64-based and ARM64-based Macs.)
If you just run a custom Eclipse without further configuration on modern macOS systems, you will propably get one of the following error messages:
The following steps are necessary to run a custom Eclipse on modern macOS systems.
- Allow your Terminal the privileges to
Full Disk AccessandDeveloper Toolsin theSettingsapp of macOS.Settings->Privacy & Security->Full Disk Access-> AddTerminalapp and/or toggle its setting toon.Settings->Privacy & Security->Developer Tools-> AddTerminalapp and/or toggle its setting toon.
- Install the recommend JDK, e.g., Eclipse Temurin JDK 21.
- Download the custom Eclipse archive (e.g., from https://emoflon.org or GitHub).
- Extract it with a double click.
- Right click on
Eclipse.app->Show Package Contents-> Navigate intoContents. - Open
Info.plistwith a text editor of your choice (e.g., VSCodium). - Open a Terminal window and run
$ /usr/libexec/java_home- This should return you a single path to your default Java JDK installation, e.g.,
/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
- This should return you a single path to your default Java JDK installation, e.g.,
- Leave your Terminal window open and return to your text editor (showing the contents of
Info.plist). Scroll down into the<array>block below the line<key>Eclipse</key>and enter your Java JDK's path with this syntax:<string>-vm</string><string>$YOUR_PATH/bin/java</string>- Example:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/bin/java</string>
- Example:
- Save the file, close your editor, and open your Terminal window again.
- Navigate the Terminal window to your Eclipse folder using
cd $FOLDER_NAME, e.g.,cd Downloads/eclipse.- Verify that your custom
Eclipse.appis located in the currently selected folder vials.
- Verify that your custom
- Sign the modified
Eclipse.appwith this command:$ sudo codesign --force --deep --sign - ./Eclipse.app- When requested, type in the password of your user account and hit enter.
- Run
$ xattr -d com.apple.quarantine ./Eclipse.appwithin the Terminal. - As for the
Terminalapp, add the privileges forFull Disk AccessandDeveloper Toolsto yourEclipse.app.
You can now start your custom Eclipse.app with a double click on it.
If macOS asks if you really want to start the "broken" app, select Run. If there is no option to run it, you can force macOS into opening it by going to the "Privacy and Security" settings and scrolling down to the bottom.
All modifications on the local Eclipse.app can also be made with this script.
... besides the hustle to get Eclipse running.
- Custom eMoflon settings will not be honored.
- The default perspective is not the eMoflon perspective.
- The default workspace encoding may not be UTF8.
- The default git clone path is not
${workspace_loc}/gitas required to run eMoflon.
- https://stackoverflow.com/questions/70725347/the-application-eclipse-can-t-be-opened-macos-monterey/71740449#71740449
- https://www.eclipse.org/forums/index.php/t/1106695/
- https://forums.developer.apple.com/forums/thread/684509
- https://forums.developer.apple.com/forums/thread/673057
- https://stackoverflow.com/questions/44872071/removing-the-code-signature-from-a-mac-app-executable


