Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Signing Jar on Eclispe Export  (Read 402 times)
0 Members and 1 Guest are viewing this topic.
Offline Alan

Senior Newbie





« Posted 2012-11-25 08:24:46 »

I'm trying to automatically sign my jar upon export, thus saving me from having to open the command prompt and manually sign it repeatedly. Is there any methods that can be used to sign the jar upon export? For reference I'm doing this for an Applet, I need to have the elevated permissions that the certificates give you. Thanks! If you need anything else, post in a reply and I'll update this post.
Offline ra4king

JGO Kernel


Medals: 264
Projects: 2


I'm the King!


« Reply #1 - Posted 2012-11-25 08:41:02 »

Nope. You're going to have to create a script (batch file on Windows, bash script on Linux) that does it for you.

Offline Alan

Senior Newbie





« Reply #2 - Posted 2012-11-25 08:42:10 »

Hmmm I've tried that... It just spams the commands and never signs the jar(s). Do you know of any script I can do that with?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 264
Projects: 2


I'm the King!


« Reply #3 - Posted 2012-11-25 08:50:23 »

Assuming you've already created your keystore, signing your jars should only be 1 command:
1  
jarsigner <path to jar> <alias>

It should then ask you for the password to your keystore (and alias if it's different).

Offline Alan

Senior Newbie





« Reply #4 - Posted 2012-11-25 08:51:30 »

Yeah, that's what I do. When I make a batch script to do it for me, it never asks for me the password and if I keep echo on, it just floods the screen with attempts.
Offline Alan

Senior Newbie





« Reply #5 - Posted 2012-11-25 09:39:34 »

Figured it out. :p
Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #6 - Posted 2012-11-25 13:39:04 »

Why not using an Ant script? It is cross-platform, you can use it both in command line and in your favorite IDE, you can have an invite to enter a password. I have used Ant for years in my main project and I'm quite happy with it. There are some alternatives for those who do not want to write XML, for example Gradle.

Offline deepthought
« Reply #7 - Posted 2012-11-25 14:57:35 »

http://m.icewalkers.com/Linux/Software/530730/KeyTool-IUI.html

http://www.lazgosoftware.com/kse/index.html

These might come in handy

jocks rule the highschools. GEEKS RULE THE WORLD MWAHAHAHA!!
captain failure test game
Pages: [1]
  ignore  |  Print  
 
 

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (54 views)
2013-05-17 21:29:12

alaslipknot (63 views)
2013-05-16 21:24:48

gouessej (94 views)
2013-05-16 00:53:38

gouessej (91 views)
2013-05-16 00:17:58

theagentd (102 views)
2013-05-15 15:01:13

theagentd (93 views)
2013-05-15 15:00:54

StreetDoggy (139 views)
2013-05-14 15:56:26

kutucuk (161 views)
2013-05-12 17:10:36

kutucuk (160 views)
2013-05-12 15:36:09

UnluckyDevil (170 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.065 seconds with 20 queries.