Java 11 is unable to load the library.

Asked 2 years ago, Updated 2 years ago, 62 views

I use mac(Mojave).
I saw an article saying that the jar file should be loaded in /Library/Java/Extensions/, but it will not load.

How do I have /Library/Java/Extensions/ referenced?



Add

* Article
http://kuwwta.hatenablog.com/entry/2016/05/12/184608
https://biojava.org/wiki/BioJava%3AGetStarted

I installed JDK using dmg from Oracle's homepage.

java macos

2022-09-30 21:35

1 Answers

Under ${JAVA_HOME/ext can be placed on extended class loaders up to Java 8.
Does the MAC change to /Library/Java/Extensions/ using the java.ext.dirs system properties?→It seems to be an old description including other sites, so I understand that it is an extended class loader.

JAVA9 has been deprecated with the introduction of the module system, so even if you put the JAR file here, you will not be able to enter the class loader.Place it in the environment variable CLASSPATH or specify it using -cp at startup.If you want to set up dependencies together, using maven/gradel is easy.

See below for more information.
https://docs.oracle.com/javase/jp/9/migrate/toc.htm


2022-09-30 21:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.