Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PRISM model checker, Library not loaded: ../../lib/libdd.dylib after upgrading to OSX El Capitan

I just upgraded my mac to El Capitan. I'm trying to run the prism model checker which works well in Yosemite and came across the following error:

java.lang.UnsatisfiedLinkError: /Users/xxx/Applications/prism-4.2.1-osx64/lib/libjdd.dylib: dlopen(/Users/xxx/Applications/prism-4.2.1-osx64/lib/libjdd.dylib, 1): Library not loaded: ../../lib/libdd.dylib Referenced from: /Users/xxx/Applications/prism-4.2.1-osx64/lib/libjdd.dylib Reason: image not found

But I checked the lib folder, libjdd.dylib is there.

like image 362
wangjingyi Avatar asked Dec 06 '25 03:12

wangjingyi


1 Answers

Update your java path in the prism.

  1. Open the prism executable (prism-osx/bin/prism) in a text editor.

  2. Edit the line PRISM_JAVA=java to

PRISM_JAVA="/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java"

Or whatever the path of your java is which you can find using "sudo find / -name java"

  1. Save and now execute the prism or xprism.

It should work.

like image 161
Anurag Kanungo Avatar answered Dec 07 '25 19:12

Anurag Kanungo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!