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
Who is Participating?
objectsConnect With a Mentor Commented:
you need to add the bin directory to your PATH

Lexx87Author Commented:
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

>>I've done that already!

Can you post the result of the following at the command line?

echo %PATH%

Open in new window

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

Lexx87Author Commented:
Told me exactly what I needed to know :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.