Sign a jar file exported from Eclipse 3.5?

Ken picture Ken · Aug 12, 2009 · Viewed 9.5k times · Source

Is it possible to sign a jar file as you export it from Eclipse 3.5? Or a plugin to allow this to happen?

I can easily export a runnable jar, and sign it myself using jarsigner, but manually doing this every change is not efficient.

Answer

VonC picture VonC · Aug 12, 2009

If there is no plugin, a possible alternative is to setup an ant script to do the operation for you on demand.

The JAR Signing mentions the Platform-releng-signedbuild script as an example, completed with a few tips.