okta-aws-cli-assume-role icon indicating copy to clipboard operation
okta-aws-cli-assume-role copied to clipboard

Update openjfx to fix Apple M1 compatibility

Open vbabenkoru opened this issue 2 years ago • 1 comments

Describe the bug When launching okta-aws on a Mac with Apple M1 processor (aarch64), it crashes with the following message:

Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /Users/victor.babenko/.openjfx/cache/12.0.1/libprism_es2.dylib: dlopen(/Users/victor.babenko/.openjfx/cache/12.0.1/libprism_es2.dylib, 1): no suitable image found.  Did find:
	/Users/victor.babenko/.openjfx/cache/12.0.1/libprism_es2.dylib: mach-o, but wrong architecture
	/Users/victor.babenko/.openjfx/cache/12.0.1/libprism_es2.dylib: mach-o, but wrong architecture
java.lang.UnsatisfiedLinkError: /Users/victor.babenko/.openjfx/cache/12.0.1/libprism_es2.dylib: dlopen(/Users/victor.babenko/.openjfx/cache/12.0.1/libprism_es2.dylib, 1): no suitable image found.  Did find:
	/Users/victor.babenko/.openjfx/cache/12.0.1/libprism_es2.dylib: mach-o, but wrong architecture
	/Users/victor.babenko/.openjfx/cache/12.0.1/libprism_es2.dylib: mach-o, but wrong architecture

To Reproduce Steps to reproduce the behavior:

  1. Install okta-aws-cli-assume-role on a Mac with Apple M1 CPU
  2. Run okta-aws in command line
  3. See error

Expected behavior It should run normally.

Additional context This was fixed in openjfx 16+6 and higher: https://github.com/openjdk/jfx/commit/e1adfa9179bb05a879b419b6221e8aa980fd6af1 Updating to 16 doesn't help, and 17 isn't on maven yet. Specifying latest version of 17+* helps though.

vbabenkoru avatar Jul 15 '21 23:07 vbabenkoru