------ Introduction ------ Landais Gabriel Compile Usually, a simple <<>> should produce an EAR. But for a raw Oracle Java install, TLS Simulator will not compile out of the box due to security restrictions on key sizes. We need to add {{{http://www.oracle.com/technetwork/java/javase/downloads/index.html}Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files}} (the very last list items). Extracting it in /tmp/jce : +---------------------------------------------------------------------------------------------------------+ glandais@tatami:/tmp/jce$ ls -al total 24 -r--r--r-- 1 glandais glandais 2663 2006-11-17 03:10 COPYRIGHT.html -rw-r--r-- 1 glandais glandais 2481 2006-11-17 03:10 local_policy.jar -r--r--r-- 1 glandais glandais 8386 2006-11-17 03:10 README.txt -rw-r--r-- 1 glandais glandais 2465 2006-11-17 03:10 US_export_policy.jar +---------------------------------------------------------------------------------------------------------+ Searching where is my java : +---------------------------------------------------------------------------------------------------------+ glandais@tatami:/tmp/jce$ which java /usr/bin/java glandais@tatami:/tmp/jce$ ls -al /usr/bin/java lrwxrwxrwx 1 root root 22 2010-09-26 18:16 /usr/bin/java -> /etc/alternatives/java glandais@tatami:/tmp/jce$ ls -al /etc/alternatives/java lrwxrwxrwx 1 root root 36 2010-09-26 18:16 /etc/alternatives/java -> /usr/lib/jvm/java-6-sun/jre/bin/java +---------------------------------------------------------------------------------------------------------+ Searching where are current policies : +---------------------------------------------------------------------------------------------------------+ glandais@tatami:/tmp/jce$ find /usr/lib/jvm/java-6-sun/ | grep policy /usr/lib/jvm/java-6-sun/bin/policytool /usr/lib/jvm/java-6-sun/jre/bin/policytool /usr/lib/jvm/java-6-sun/jre/lib/security/java.policy /usr/lib/jvm/java-6-sun/jre/lib/security/javaws.policy /usr/lib/jvm/java-6-sun/jre/lib/security/local_policy.jar /usr/lib/jvm/java-6-sun/jre/lib/security/US_export_policy.jar /usr/lib/jvm/java-6-sun/jre/man/man1/policytool.1.gz /usr/lib/jvm/java-6-sun/jre/man/ja/man1/policytool.1.gz /usr/lib/jvm/java-6-sun/man/man1/policytool.1.gz /usr/lib/jvm/java-6-sun/man/ja/man1/policytool.1.gz +---------------------------------------------------------------------------------------------------------+ Overwriting current policies with new ones : +---------------------------------------------------------------------------------------------------------+ glandais@tatami:/tmp/jce$ sudo cp *.jar /usr/lib/jvm/java-6-sun/jre/lib/security/ +---------------------------------------------------------------------------------------------------------+