I am trying to build the Apache Storm Starter Project using Maven
on Mac OS X 10.10
I am failing the build because of a SunCertPathBuilderException
which suggests I need to add a security certificate in my $JAVA_HOME/lib/security
directory.
This Stackoverflow Post suggests I am looking in the correct place.
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk/Contents/Home
However, my $JAVA_HOME/lib
directory contains no such security subdirectory. The contents are:
ant-javafx.jar ct.sym dt.jar ir.idl javafx-mx.jar jconsole.jar missioncontrol orb.idl packager.jar sa-jdi.jar tools.jar visualvm
Why don't I have this security directory? Also, is this really necessary for being able to build an example project from Apache?
How can I set up my JDK to build in situations like this?
In Java, we can find the java.security file at the following location: For Java 8, and early version, we can find the java.security file at $JAVA_HOME/jre/lib/security/java.security.
Java JRE are installed in /Library/Internet Plug-Ins. So the lib/security Folder is located in /Library/Java/JavaVirtualMachines/JDK_xxx/.... Show activity on this post.
Java JRE are installed in /Library/Internet Plug-Ins. So the lib/securoty Folder is located in /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security.
Policy file locations are specified in the security properties file, which is located at java.home/lib/security/java.security (Solaris/Linux) java.home\lib\security\java.security **(Windows)**.
if $JAVA_HOME
refers to a JDK, then the security
folder exists at:
$JAVA_HOME/jre/lib/security
not
$JAVA_HOME/lib/security
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With