

If it's also helpful, I am using a Maven Java Application project.įYI: I am using NetBeans IDE 8.2 Patch 2. Anyone have any idea how I can fix this? How come the application works in Eclipse but not in NetBeans? I've been trying to look around but cannot find anything. I copied the application from NetBeans to Eclipse directly to narrow down the issue and it worked perfectly fine in Eclipse so I figure it's not a coding problem but a configuration problem somewhere in NetBeans. My REST call works when I run the application in Eclipse but when I run the same application in NetBeans, I get the following error message which implies I did not add the CER file to the keystore: "PKIX path building failed: .SunCertPathBuilderException: unable to find valid certification path to requested target" I am trying to make a REST call in a Java application. I added my CER file to my keystore by issuing the following command: "keytool -import -storepass -noprompt -alias -keystore "\Java\jre1.8.0_45\lib\security\cacerts" -trustcacerts -file.
