Search code examples
javamacosbouncycastlejava-13

Where is the JRE lib/ext directory from JRE13 on Mac OS X?


I want to install the bouncy castle security.

so. when I try to move bcprov-jdk13-164.jar file, but ext folder in locate $JAVA_HOME/jre/lib is not existed. and any other folers are same that.

I need to find this directory or how to installing and using. Thanks!


Solution

  • I need to find this directory or how to installing and using.

    Support for the "lib/ext" directory was removed in Java 9; see "Java Platform, Standard Edition Oracle JDK 9 Migration Guide: Removed Extension Mechanism"

    You now need to add any 3rd-party JAR files to the application's classpath:

    • the build classpath if there are compile time dependencies,
    • the runtime classpath if there are runtime dependencies.

    If you are trying to use Bouncy Castle in a web container, the JAR needs to be in the container's lib directory rather than in the webapp directory.

    (Instructions you may find for installing Bouncy Castle JCE providers into "lib/ext" on Java 8 are not applicable for later Java releases.)