This discussion is archived
2 Replies Latest reply: Sep 4, 2008 10:26 AM by 843849 RSS

Have a problem with Optional JDBC package

843849 Newbie
Currently Being Moderated
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(
at sun.misc.Launcher$AppClassLoader.defineClassPrivate(
at sun.misc.Launcher$AppClassLoader.access$500(
at sun.misc.Launcher$

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(
at sun.misc.CVM.runMain(

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