I think I found the problem.
Apple changed rt.jar to classes.jar, which is located in.
/System/Library/Frameworks/JavaVM.framework/Versions/ <your_java_version>
/Classes/classes.jar
I need to modify my pom.xml to show it the path to classes.jar.
Edit: in a project with a few bugs. Creating soft links to jar classes in the lib directory is much better.
sudo ln -s ../../Classes/classes.jar ./rt.jar
Well sudo
, because writing as a result of the /usr/libexec/java_home
, which is your java home directory, requires administrative privileges.
source share