Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start on Mac OS X - silicon m1 arm #99

Open
Strat1987 opened this issue Feb 15, 2022 · 2 comments
Open

Cannot start on Mac OS X - silicon m1 arm #99

Strat1987 opened this issue Feb 15, 2022 · 2 comments

Comments

@Strat1987
Copy link

Expected Behavior

Startup without exceptions

Actual Behavior

Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /Users/bertroex/.openjfx/cache/14-ea/libprism_es2.dylib: dlopen(/Users/bertroex/.openjfx/cache/14-ea/libprism_es2.dylib, 0x0001): tried: '/Users/bertroex/.openjfx/cache/14-ea/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libprism_es2.dylib' (no such file)
java.lang.UnsatisfiedLinkError: /Users/bertroex/.openjfx/cache/14-ea/libprism_es2.dylib: dlopen(/Users/bertroex/.openjfx/cache/14-ea/libprism_es2.dylib, 0x0001): tried: '/Users/bertroex/.openjfx/cache/14-ea/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libprism_es2.dylib' (no such file)

Steps to Reproduce the Problem

  1. extract on mac os x with m1 chip
  2. open

Specifications

  • jGnash Version: 3.5.1
  • Operating System: macOS 12.0.1
  • Java Version 11.0.14
@Strat1987
Copy link
Author

using jdk Using java version 17.0.2.fx-zulu opens the app but still gives an error trying to open the xml file.

[2022-02-17 11:32:38] [INFO ] {jgnash.plugin.PluginFactory getDefaultPluginDirectory} Plugin path: /path/jGnash/jGnash-3.5.1/plugins/
[2022-02-17 11:32:38] [INFO ] {jgnash.plugin.PluginFactory getUserPluginDirectory} Plugin path: /Users/user/.jgnash/plugins/
[2022-02-17 11:32:38] [INFO ] {jgnash.plugin.PluginFactory startPlugins} Starting plugin: MT940 Import
[2022-02-17 11:32:39] [SEVERE ] {jgnash.util.LogUtil logSevere} Operation not supported
java.io.IOException: Operation not supported
at java.base/sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
at java.base/sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:96)
at java.base/sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1328)
at java.base/java.nio.channels.FileChannel.tryLock(FileChannel.java:1191)
at jgnash.util.FileUtils.isFileLocked(FileUtils.java:134)
at jgnash.uifx.tasks.BootEngineTask.call(BootEngineTask.java:93)
at jgnash.uifx.tasks.BootEngineTask.call(BootEngineTask.java:20)
at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Task.java:1426)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.lang.Thread.run(Thread.java:833)

[2022-02-17 11:32:42] [INFO ] {jgnash.plugin.PluginFactory stopPlugins} Stopping plugin: MT940 Import

@Strat1987
Copy link
Author

I'm loading the xml file from Google Drive and since the latest release it seems to be handled as an external Volume on OS X.

This can be resolved by moving it over to a local folder (which I've then added to be synced using Google Drive)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant