-
Notifications
You must be signed in to change notification settings - Fork 17
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
M1 Mac Support #135
Comments
Hi @mcoughlin , thanks for reporting this issue. One option is to use an x64 JVM version. this should be available from https://adoptium.net/temurin/releases or via homebrew/sdkman. I haven't tested mysql connections, but all database code uses JDBC and that may be another option for native M1 support: https://usgs.github.io/pdl/userguide/configureMySQL.html |
Unfortunately it doesn't look quite so simple: [Warning] Connection init error: Error creating CORBA ORB or POA: org.omg.CORBA.INITIALIZE: Unable to initialize orb loader (java.lang.NoClassDefFoundError: Could not initialize class org.openorb.orb.config.OpenORBLoader) |
This is a security feature of java 17, related to the EIDS client from Java8 and not specific to M1. Add
We have a prototype replacement for EIDS using web sockets, but there are many competing priorities |
Perfect thanks @jmfee-usgs. This might be worth adding to the README quick. |
It looks like the client does not work on M1 Macs. Has anyone else complained?
Product Distribution Client
Version 2.7.10 2021-06-21
INFO thread=1 Starting
SEVERE thread=1 Exceptions while starting, shutting down
java.sql.SQLException: Error opening connection
at org.sqlite.core.CoreConnection.open(CoreConnection.java:215)
at org.sqlite.core.CoreConnection.(CoreConnection.java:76)
at org.sqlite.jdbc3.JDBC3Connection.(JDBC3Connection.java:25)
at org.sqlite.jdbc4.JDBC4Connection.(JDBC4Connection.java:24)
at org.sqlite.SQLiteConnection.(SQLiteConnection.java:45)
at org.sqlite.JDBC.createConnection(JDBC.java:114)
at org.sqlite.JDBC.connect(JDBC.java:88)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:683)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
at gov.usgs.earthquake.distribution.JDBCNotificationIndex.connect(JDBCNotificationIndex.java:348)
at gov.usgs.earthquake.util.JDBCConnection.startup(JDBCConnection.java:101)
at gov.usgs.earthquake.distribution.JDBCNotificationIndex.startup(JDBCNotificationIndex.java:360)
at gov.usgs.earthquake.distribution.DefaultNotificationReceiver.startup(DefaultNotificationReceiver.java:621)
at gov.usgs.earthquake.distribution.EIDSNotificationReceiver.startup(EIDSNotificationReceiver.java:149)
at gov.usgs.earthquake.distribution.ProductClient.startup(ProductClient.java:241)
at gov.usgs.earthquake.distribution.ProductClient.run(ProductClient.java:370)
at gov.usgs.earthquake.distribution.Bootstrap.main(Bootstrap.java:343)
Caused by: java.lang.Exception: No native library is found for os.name=Mac and os.arch=aarch64. path=/org/sqlite/native/Mac/aarch64
at org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:333)
at org.sqlite.SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:64)
at org.sqlite.core.NativeDB.load(NativeDB.java:56)
at org.sqlite.core.CoreConnection.open(CoreConnection.java:211)
... 16 more
The text was updated successfully, but these errors were encountered: