JAI (Java Advanced Imaging) & MAC OS X 10.5.8

Discussion in 'Mac Programming' started by SWEngineer, Jan 9, 2010.

  1. SWEngineer macrumors newbie

    Jan 9, 2010
    I'm having a small issue with a program in Java at my MAC OS X 10.5.8 version.

    In the Java program, I'm having a class, namely "DicomImageReaderParam" that needs JAI in the CLASSPATH.

    How can I set that up provided that I knew that MAC OS X's Java has a JAI and Java3D extension.

    Can you tell me just how can I set that up?

  2. chown33 macrumors 604

    Aug 9, 2009
    Sailing beyond the sunset
    Exactly what is the "small issue"?

    If there's an error message or stack trace, post it.

    If your class needs a specific version of JAI or Java3D, then post that, too.

    If you knew that those libraries were extensions, then you'd do nothing to set anything up. They would already be installed as extensions.

    Extensions do not appear in CLASSPATH, by which I mean the environment variable CLASSPATH or the -classpath parameter (also known as the "user classpath"). If that's the issue, or related to the issue, then don't look for them in CLASSPATH.

    The following is an approximately correct description of how classes are found:

    It's only approximate because it fails to say that the extensions dir is actually a list of dirs rather than a single dir, and that the list is defined by the "java.ext.dir" property, and that the default value of that property can differ across platforms.

Share This Page