aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes jarsigner path proble (exception) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "jarsigner path proble (exception)" Watch "jarsigner path proble (exception)" New topic
Author

jarsigner path proble (exception)

emmanuel manu
Greenhorn

Joined: Nov 16, 2004
Posts: 2
hello,

i have a problem with the jarsigner exe

whenever i configure "java path" under my os environment like this :

CLASSPATH = C:\j2sdk1.4.2_04\lib
JAVA_HOME = C:\j2sdk1.4.2_04
ANT_HOME = C:\Program Files\Java\apache-ant-1.5.4
path = C:\j2sdk1.4.2_04\bin;%PATH%;%ANT_HOME%\bin;%JAVA_HOME%\bin;%CLASSPATH %

when i run my build.xml file under Eclipse platform i have the following error :

[signjar] Signing Jar : D:\server_app_java\deploy\Fiche25.jar
[signjar] java.lang.NoClassDefFoundError: sun/security/tools/JarSigner
[signjar] Exception in thread "main"

so i try to launch jarsigner by "cmd" command and found this :

jarsigner works well if i specify the jdk absolute path like this
C:\j2sdk1.4.2_04\jarsigner.exe ... whatever the starting folder i use,
but if i just use "jarsigner.exe....." i have the same error message than eclipse console.

I don't understand all other exe files under C:\j2sdk1.4.2_04 folder work fine whithout the absolute path (cause the environment variable path is set to this folder) but jarsigner doesn't


any idee ?
emmanuel manu
Greenhorn

Joined: Nov 16, 2004
Posts: 2
ouppsss !! i forgot a folder in my message

from cmd i use "C:\j2sdk1.4.2_04\bin\jarsigner.exe ...." that's ok
within the path does not work
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jarsigner path proble (exception)