Monday, May 4, 2009

Using jndi on mac

New to mac and trying the get the simplest jndi app working on it?
I got stuck figuring out where to place these jars.

  1. Download the JNDI 1.1.2 packages, which consist of:
    • JNDI 1.1.2 class libraries package (jndi112.zip)
    • LDAP Service Provider package (ldap103.zip)
    • fscontext-1_2-beta3.zip

    Extract the jar files from the zips.

  2. Move these to /System/Library/Java/Extensions
  3. Edit the /System/Library/Java/JavaConfig.plist
  • $HOME/Library/Java/Extensions/providerutil.jar:$HOME/Library/Java/Extensions/jndi.jar:$HOME/Library/Java/Extensions/fscontext.jar
And voila the program compiles