Exception in thread "main" when trying to sign jar file

Whenever I attempt to use jarsigner to sign or verify a jar file I receive the following message:

C:\Contract Manager\Contractmanager\dist>jarsigner -verify CM.jar

Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/JarSigner

C:\Contract Manager\Contractmanager\dist>jarsigner -verify Contractmanager.jar

Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/JarSigner

C:\Contract Manager\Contractmanager\dist>jarsigner -keystore myKeystore -storepa

ss primedia Contractmanager.jar mykey

Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/JarSigner

I have signed other JAR files previously on this server but for some reason I keep receiving this message.

I am working on a Windows 2003 server. i have been trying to resolve this for the past day without any success. Does any have any suggestions for me? Thanks in advance.

Rick

[1004 byte] By [hudamana] at [2007-10-3 9:50:38]
# 1
Something wrong with your JDK installation or your classpath.
ejpa at 2007-7-15 5:07:52 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2
I have reinstalled the jdk but this has not resolved the issue. This is getting really frustrating. Any other suggestions?
hudamana at 2007-7-15 5:07:52 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 3
Try removing all references to the JDK and JRE installation directories from your CLASSPATH.
ejpa at 2007-7-15 5:07:52 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 4

Has anyone divined a solution for this yet? I just upgraded to JDK 1.5 (and redeployed the applet using 1.5), and now I can抰 get JarSigner to work.

I recreated my self certified keystore using 1.5, but when I try to sign my .jar file I get the error:

Exception in thread 搈ain?java.lang.noClassDefFoundError: sun/security/tools/JarSigner

I tried importing the sun/security/tools into the Applet, and I also deleted all older versions of JDK and JRE from my PC, but neither approach eliminated the error.

Any thoughts?

caludcaba at 2007-7-15 5:07:52 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 5
Your PATH or CLASSPATH points to a JRE not a JDK.
ejpa at 2007-7-15 5:07:52 > top of Java-index,Security,Other Security APIs, Tools, and Issues...