Index: trunk/src/gnu/getopt/Getopt.java
===================================================================
--- trunk/src/gnu/getopt/Getopt.java	(revision 12892)
+++ trunk/src/gnu/getopt/Getopt.java	(revision 13647)
@@ -657,4 +657,5 @@
   // strictly follow the POSIX standard.  This replaces the "POSIXLY_CORRECT"
   // environment variable in the C version
+  try {
   if (System.getProperty("gnu.posixly_correct", null) == null)
     posixly_correct = false;
@@ -665,4 +666,7 @@
                              //                      Locale.US);
     }
+  } catch (SecurityException e) {
+    System.err.println(e.getMessage());
+  }
 
   // Determine how to handle the ordering of options and non-options
