Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I’m trying to install Pl/Java on OS X, but I have some troubles. If the README calls for Unix systems to:

export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client

What is the equivalent for OS X? I know I may need: DYLD_LIBRARY_PATH, but what about the path in OS X?

share|improve this question
Do you mean /System/Library/Frameworks/JavaVM.framework/Libraries/? There are quite a few .jnilib files in there. – slhck Jul 24 '11 at 10:09
DYLD_LIBRARY_PATH? – Daniel Beck Jul 24 '11 at 10:14

Set your $JAVA_HOME as so:

export JAVA_HOME=$(/usr/libexec/java_home)

Then try setting LD_LIBRARY_PATH to $JAVA_HOME/bundle/Libraries or $JAVA_HOME/lib. Not a complete answer since I don't use PL/Java but hopefully this helps.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.