Oracle JRE pkg on silicon Mac return "OS error code 1". Solution

This post really helped me solve this problem: https://www.codejam.info/2022/04/repackage-macos-app-m1-support-without-rosetta.html


There is no need to go too deep into this post, that's all you need to do:

  1. Mount dmg from ARM64 version of the JRE (but don't install pkg!)
  2. Copy cp -r /Volumes/Java\ 8\ Update\ 431/Java\ 8\ Update\ 431.app/Contents/Resources/JavaAppletPlugin.pkg to some place.
  3. In this place, create some directory of your own, for example PluginDir
  4. cd PluginDir; xar -xf ../JavaAppletPlugin.pkg
  5. vim Distribution
  6. Insert "<options hostArchitectures="arm64,x86_64" />" in anywhere inside the installer-gui-script node.
  7. Create new package: xar --compression none -cf ../JavaAppletPlugin-new.pkg .
  8. sudo /usr/sbin/installer -verbose -pkg "/Path/to/JavaAppletPlugin-new.pkg" -target /

Posted on Dec 13, 2024 4:38 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Oracle JRE pkg on silicon Mac return "OS error code 1". Solution

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.