1 Reply Latest reply on Feb 18, 2013 7:49 AM by Kayaman

    java.lang.SecurityException: showDocument url permission denied


      We get below given error in one of the java application when we use the java version which is higher than 1.6.0_24.

      java.lang.SecurityException: showDocument url permission denied
      at sun.plugin2.main.client.MessagePassingExecutionContext.showDocument(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletContextImpl.showDocument(Unknown Source)
      at vrts.CreateCrystalReports.createTransmittal(CreateCrystalReports.java:52)
      at vrts.JFrameOldProjectWizard.createTransmittalAndOCS(JFrameOldProjectWizard.java:289)
      at vrts.JFrameOldProjectWizard$6.actionPerformed(JFrameOldProjectWizard.java:240)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

      We get this error in below given code where it tries to open a HTML file.


      Can you please provide solution for this issue so that code should work in any java versions.


      Edited by: 988624 on Feb 17, 2013 11:06 PM