gcam-core icon indicating copy to clipboard operation
gcam-core copied to clipboard

Java version incompatible in GCAM 8.2 using MAC

Open climate-change-ucsb opened this issue 5 months ago • 2 comments

I am using GCAM 8.2 with my mac.

After running the run-gcam.command, I got the following error:

Library not loaded: @rpath/libjvm.dylib

Reason: tried: '../libs/java/lib/libjvm.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')

climate-change-ucsb avatar Jul 29 '25 01:07 climate-change-ucsb

I had the same issue, and I think it is related to the Java version (I had version 18, which was built on 'X86_64', and not the needed 'arm64' for Mac chip). I went on my terminal and installed OpenJDK17 via Homebrew (in the terminal: brew install openjdk@17). Then I had to configure my environment variables to point GCAM to the correct Java version. Then I updated the symbolic link located in my GCAM folder (libs/java/lib) to point to the newer version.

Then I got other errors with permissions and tbb library (and I had to "allow open" in system settings -> privacy & security) a bunch of times. And now GCAM v8.3 is running on my Mac M1 chip.

CandeBergero avatar Aug 22 '25 19:08 CandeBergero

Thanks Cande! It iis working now!

climate-change-ucsb avatar Aug 22 '25 23:08 climate-change-ucsb