2010-08-02から1日間の記事一覧

Multiple paths in a grant codebase block in a Java security policy file.

The documentation doesn't say this, but you can grant codebase "path" multiple paths by separating the paths with a colon (":"). For example, grant codebase "/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/ext:/usr/java/packages/lib/ext" { ... }

How to add a class to an existing JAR file.

Say we have a jar file start.jar and want to add a class to it. $ mkdir jarbuild $ cp start.jar jarbuild $ cd jarbuild $ jar -xf start.jar $ rm start.jar $ cp -r ~/secmgr . $ find secmgr/ secmgr/ secmgr/manager secmgr/manager/ProfilingSecu…