Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jarsigner path proble (exception)

 
emmanuel manu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic