Skip to content

Instantly share code, notes, and snippets.

@chetandhembre
Forked from nicerobot/jstatd.sh
Last active August 29, 2015 14:07
Show Gist options
  • Save chetandhembre/7fa1fd80286253c9f1c2 to your computer and use it in GitHub Desktop.
Save chetandhembre/7fa1fd80286253c9f1c2 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