Skip to content

Instantly share code, notes, and snippets.

@user454322
Forked from nicerobot/jstatd.sh
Created May 30, 2013 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save user454322/5676319 to your computer and use it in GitHub Desktop.
Save user454322/5676319 to your computer and use it in GitHub Desktop.
#!/bin/sh
policy=${HOME}/.jstatd.all.policy
[ -r ${policy} ] || cat >${policy} <<'POLICY'
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};
POLICY
jstatd -J-Djava.security.policy=${policy} &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment