Lexx87
asked on
Applet signing - How to use jarsigner tool?
This is such a 'noob' type question I hate myself for asking it. Basically i'm wanting to use the keytool/jarsigner tool provided in the JDK (1.6 update 13) to sign an applet I have. I have the .jar and know the method of actually signing the applet.
Yet using the command line, how do I access the tools? The tools are in the JDK folder while my classes or jar is in my workspace, so on the command line how do I get access to the jarsigner/other tools in my workspace?
I tried setting the CLASSPATH to the directory but no luck there...I was born when I didn't need to use the command line so never really have :p
Yet using the command line, how do I access the tools? The tools are in the JDK folder while my classes or jar is in my workspace, so on the command line how do I get access to the jarsigner/other tools in my workspace?
I tried setting the CLASSPATH to the directory but no luck there...I was born when I didn't need to use the command line so never really have :p
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you don't need to touch the classpath to run jarsigner
>>I've done that already!
Can you post the result of the following at the command line?
Can you post the result of the following at the command line?
echo %PATH%
ASKER
No I was wrong, I assumed they were actually the same thing :) Classpath and path. Should be fine now, i'll post back with the result.
Path is now C:\Program Files\Java\jdk1.6.0_13\bin
Path is now C:\Program Files\Java\jdk1.6.0_13\bin
no they are different, PATH is a list of locations for the os to look for executables
CLASSPATH is a list of locations for the java vm to look for classes
> Path is now C:\Program Files\Java\jdk1.6.0_13\bin
that should do it :)
CLASSPATH is a list of locations for the java vm to look for classes
> Path is now C:\Program Files\Java\jdk1.6.0_13\bin
that should do it :)
ASKER
Told me exactly what I needed to know :)
ASKER
It's what I meant by setting my classpath to the directory. Why I got confused in what I was supposed to do :)