2 Replies Latest reply: Sep 4, 2008 12:26 PM by 843849 RSS

    Have a problem with Optional JDBC package

    843849
      I downloaded and compiled optional package (JSR-169). I can't just add this jar to my NetBeans project because I will have an exception:
      java.lang.SecurityException: Prohibited package name: java.sql
      at sun.misc.Launcher$AppClassLoader.handlePackage(Launcher.java:472)
      at sun.misc.Launcher$AppClassLoader.defineClassPrivate(Launcher.java:516)
      at sun.misc.Launcher$AppClassLoader.access$500(Launcher.java:325)
      at sun.misc.Launcher$4.run(Launcher.java:546)


      I add this jar to my emulator and I have an exception:
      java.lang.NoClassDefFoundError: java.sql.SQLException
      at java.lang.Class.getMethod0(Native Method)
      at java.lang.Class.getMethod(Class.java:958)
      at sun.misc.CVM.runMain(CVM.java:460).

      What should I do to add this jar to my netbeans project?