JGCRI / gcam-core

GCAM -- The Global Change Analysis Model
http://jgcri.github.io/gcam-doc/
Other
263 stars 159 forks source link

Error on Mac - DB Open Database reading "Java.lang.nullpointerexception" #434

Open josephinehenze opened 4 weeks ago

josephinehenze commented 4 weeks ago

Hello! After using GCAM successfully for a few months this past week it is not opening correctly.

I am running a Mac M1 processor with Sonoma 14.5 (which was updated within the last two months) and Java 21.0.2 and the ModelInterface will not open and is running the Java error "java.lang.nullpointerexception" when I try to link DB Open to the Database from the Output folder. This is the GCAM v6.0 with the ModelInterface from v5.4.

I have tried downloading Java and GCAM (different versions from 5.4 to 6) again and installing everything new and the error continues to persist. We have also tried this on a Mac with an Intel processor that has never used GCAM before and the same error occurs. I have tried removing it from the cloud and running it as well, the same error results.

Screenshot 2024-05-27 at 11 44 17

Additionally, when trying to run "run.gcam.command" in the newly downloaded GCAM 6.0 versions, it additionally reaches an error and does not move forward. Are there any plans for new Mac architectures for GCAM v.6?

I receive this code in the terminal: dyld[23463]: Library not loaded: @rpath/libjvm.dylib Referenced from: /Users/josephinehenze/Library/CloudStorage/OneDrive-Nexus365/Dissertation/GCAM Software/gcam-v6-new/exe/Release/gcam Reason: tried: '../libs/java/lib/libjvm.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '../libs/boost-lib/stage/lib/libjvm.dylib' (no such file), '../libs/libjvm.dylib' (no such file), '../libs/tbb/lib/libjvm.dylib' (no such file), '../libs/java/lib/libjvm.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '../libs/boost-lib/stage/lib/libjvm.dylib' (no such file), '../libs/libjvm.dylib' (no such file), '../libs/tbb/lib/libjvm.dylib' (no such file), '/usr/local/lib/libjvm.dylib' (no such file), '/usr/lib/libjvm.dylib' (no such file, not in dyld cache) /Users/josephinehenze/Library/CloudStorage/OneDrive-Nexus365/Dissertation/GCAM Software/gcam-v6-new/exe/run-gcam.command: line 42: 23463 Abort trap: 6 ./Release/gcam -C configuration.xml

Saving session... ...copying shared history... ...saving history...truncating history files... ...completed.

[Process completed]

Thank you for the help!