This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
i am no programmer, i am a mere systems admin and iam new to JAVA so bear with me
I have been trying to solve this problem all day yesterday but with no luck , so your help is greatly appreciated
the JAVA APPLET certificate is due to expire on our webserver, we bought the certificate and applied it fine until the last step in which we need to sign the JAR file with the new certificate using the Jarsigner
when typing the following command
$sudo jarsigner jarfile keystore Alias
i get the following error
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
for some reason the jarsigner can not find the the JRE, or that is what i think. However, i am not sure how to solve this problem i tried setting up the environment but with no luck, can you pelase help
You're running the jarsigner command as root using sudo, not running it as yourself; that means your environment is meaningless, and it's root's environment that matters. The jarsigner that you get on your path is not necessarily the one that root gets; nor is the sudo shell going to inherit things like JAVA_HOME from your environment. All of the environment info you've reported to us so far is pretty much meaningless because it's not in effect for the command you eventually run.
Try sudo which jarsigner, sudo java -version, and sudo printenv JAVA_HOME. That should give you an idea of what you're working with. If you still don't know what to do, tell us what those commands report and we'll try to help.
Alternatively, to make it work without knowing what was going wrong, just set JAVA_HOME in root's environment and force the right version of jarsigner: