im getting the same error no matter what. ive set the class path, and included jar files in the weblogic/bin directory ive tried all day and about to Can somebody please help me with this i m new to jdbc
yes the datasource in binding, ive created and deployed datasource without any errors. here is the error message i recieve when i compile the above program ------------------------------------------------------------------------ javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLIntialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLIntialContextFactory] at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at javax.naming.InitialContext.<init>(Unknown Source) at sq4.main(sq4.java:18) Caused by: java.lang.ClassNotFoundException: weblogic.jndi.WLIntialContextFactory at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source) ... 5 more --------------------------------------------------------------------------
hi i solved the problem by including sqldriver.jar, but now its show this error java.lang.UnsupportedClassVersionError: sq4 (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method)