Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 694 times)
0 Members and 1 Guest are viewing this topic.
Offline Alan

Senior Newbie





« Posted 2012-11-25 07: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: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2012-11-25 07: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 07: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: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #3 - Posted 2012-11-25 07: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 07: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 08:39:34 »

Figured it out. :p
Offline gouessej
« Reply #6 - Posted 2012-11-25 12: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 13: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  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Dwinin (29 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (79 views)
2014-09-10 06:39:09

Tekkerue (39 views)
2014-09-09 02:24:56

mitcheeb (58 views)
2014-09-08 06:06:29

BurntPizza (45 views)
2014-09-07 01:13:42

Longarmx (30 views)
2014-09-07 01:12:14

Longarmx (35 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19

mitcheeb (40 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!