new samples/jnlp dir: includes both unsigned and signed examples that work in 
Java 1.5 and 1.6
----------------------------------------------------------------------------------------------

                 Key: JRUBY-2040
                 URL: http://jira.codehaus.org/browse/JRUBY-2040
             Project: JRuby
          Issue Type: New Feature
    Affects Versions: JRuby 1.1
            Reporter: Stephen Bannasch
            Assignee: Thomas E Enebo
         Attachments: jnlp-samples.tar.gz

I've attached a tar.gz to this issue which when extracted in samples/ adds s 
both unsigned and signed examples that work in Java 1.5 and 1.6.

{code}
[~/dev/jruby_trunk/jruby/samples]$ ls -l jnlp
total 48
-rw-r--r--   1 stephen  stephen  1117 Jan 25 10:57 README
-rw-r--r--   1 stephen  stephen   773 Jan 25 10:44 build.xml
-rw-r--r--   1 stephen  stephen   869 Jan 25 10:09 jirb.jnlp
-rw-r--r--   1 stephen  stephen  1269 Jan 25 10:20 jnlp-sample-keystore
lrwxr-xr-x   1 stephen  stephen     9 Jan 25 10:05 lib -> ../../lib
drwxr-xr-x   2 stephen  stephen    68 Jan 25 10:59 signed-jars
-rw-r--r--   1 stephen  stephen   828 Jan 25 10:52 signed-jirb.jnlp
{code}

This is what is contained in the README:

{noformat}
There are two sample Java Web Start jnlp files in this directory for starting 
JRuby and displaying an IRB Console.

1. jirb.jnlp

jirb.jnlp uses an unsigned version of the jruby-complete.jar and is run with 
the standard minimal security permissions that Java Web Start assigns to an 
untrusted Web Start application. For example while running this version you 
won't be able to read or write to local directories.

Running jirb.jnlp:

  javaws jirb.jnlp

2. signed-jirb.jnlp uses a signed version of the jruby-complete.jar and 
includes this declaration in the jnlp:

  <security>
    <all-permissions/>
  </security>
  
This signed version of jirb.jnlp should be able to do almost anything on your 
local computer.

Before running signed-jirb.jnlp sign and copy jruby-complete.jar with this ant 
task:

  ant sign-jar
  
Running signed-jirb.jnlp:

  javaws signed-jirb.jnlp


The keystore and certificate used for signing jruby-complete.jar wer created 
like this:

  keytool -genkey -keystore jnlp-sample-keystore -alias jnlp-sample-keystore
  keytool -selfcert -alias jnlp-sample-keystore -keystore jnlp-sample-keystore
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to