Tuesday, June 8, 2010

Deploy the Cornnow applet on my laptop

Task: Put the current version online as an applet
0602-0607

1. Study the deployment of Java applets
Study Material: Lesson: Applets
2. Deploy the Cornnow applet on my laptop

More details:
1. Write CCApplet.html

2. Write CCApplet.jnlp

3. Replace the generated CC\dist\lib\Core.jar with Core\dist\Core.jar
The first jar is not complete somehow.

4. To satisfy the security requirements, all the jar files need to be signed.
4.1 Generate a key pair
keytool -genkeypair -dname "cn=Ping Wang, ou=CS, o=RPI, c=US" -alias mykey -keypass XXX -storepass XXX -validity 180
4.2 For each jar file (including CC.jar and other referenced jar files)
jarsigner -storepass XXX -keypass XXX jogl.jar mykey

5. Deal with native libraries
CC needs 4 dll files: gluegen-rt.dll, jogl.dll, jogl_awt.dll, jogl_cg.dll
Currently, I put them in the bin of the jdk directory; orelse, an error will be reported: java.lang.UnsatisfiedLinkError: no jogl in java.library.path
This solution is not so good, because we may not have access to the bin of the jdk directory on a web server.
I will try to find an alternative way to make the dll files available to the applet.

1 comment:

  1. You may find this blog entry useful http://csdt-laut.blogspot.com/2010/06/work-progress-jun-9-jun-15.html

    ReplyDelete