This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Signing a jar file problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Signing a jar file problem" Watch "Signing a jar file problem" New topic
Author

Signing a jar file problem

Mike Rybak
Greenhorn

Joined: Oct 08, 2011
Posts: 2
Hi, i'm fairly new to Java so I thought i'd post in this forum section.

I'm trying to sign a jar file so that I can add it to a html webpage without problems. However, after reading various online guides, I am unable to solve a problem I get when using Jarsigner. Here is a snapshot from my CMD screen after using jarsigner (I have already generated a keystore file):



I have the .keystore file in my home directory and have the Jar file in my JDK bin folder

Any ideas?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

You shouldn't put any of your own files inside the JDK folder. With Windows Vista and Windows 7 you often don't have the rights to write in that folder, especially not from command line tools which don't work well with UAC.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Consider Paul's rocket mass heater.
 
subject: Signing a jar file problem
 
Similar Threads
Sign a jar with a third party certificate, using keytool and jarsigner
Jarsigner error: NULL Pointer exception
Signing a jar
Signing a jar
jarsigner adding the jarfile name to the signed fully qualified name