Link to home
Start Free TrialLog in
Avatar of Lexx87
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
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lexx87
Lexx87

ASKER

I've done that already!

It's what I meant by setting my classpath to the directory. Why I got confused in what I was supposed to do :)
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?


echo %PATH%

Open in new window

Avatar of Lexx87

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
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 :)

Avatar of Lexx87

ASKER

Told me exactly what I needed to know :)