Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Security - Missing lib/security directory

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?

like image 793
Brian Avatar asked Feb 03 '16 18:02

Brian


People also ask

Where can I find the Java security file in Java?

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.

Where is the Lib/security folder located in Java?

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.

Where can I find the securoty folder in Java?

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.

Where is the policy file located in Java?

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)**.


1 Answers

if $JAVA_HOME refers to a JDK, then the security folder exists at:

$JAVA_HOME/jre/lib/security

not

$JAVA_HOME/lib/security
like image 135
Eng.Fouad Avatar answered Oct 05 '22 23:10

Eng.Fouad