which java? (for applet security settings)

In Ubuntu:

update-alternatives --list java

the output should be something like

There are 2 choices for the alternative java (providing /usr/bin/java).
Selection    Path                       Priority   Status
* 0            /usr/bin/java-j2re1.6-ibm   1200      auto mode
  1            /usr/bin/java-j2re1.6-ibm   1200      manual mode
  2            /usr/bin/java-j2sdk1.6-ibm  1200      manual mode



and the file to edit is


File syntax is something like

grant codeBase "http://somehost.com:80/*" {
  permission java.security.AllPermission;

Bad Behavior has blocked 258 access attempts in the last 7 days.