0 Replies Latest reply: Mar 31, 2010 10:59 AM by 843851 RSS

    Oracle database connection on a LXE MX7

    843851

      I'm developing an application for a LXE MX7 (windows ce ARM architecture) using crEme as VM. I've got nearly everything up and running apart from a remote database connection to our oracle 11g database.
      I'm using the Classes111.jar, I've tried other classes as well (classes12.zip), but they've all led to NoClassDeFoundErrors.

      Following code throws the trace pasted below:



      DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
      Connection c = DriverManager.getConnection("jdbc:oracle:thin:@" + IP + ":1521:" + TNS, username, password);




      java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleConnection


      at oracle.jdbc.driver.OracleDriver.getConnectionInstance()


      at oracle.jdbc.driver.OracleDriver.connect()


      at java.sql.DriverManager.getConnection()


      at java.sql.DriverManager.getConnection()


      at be.carglass.main.DatabaseManager.createConnection()


      at be.carglass.main.DatabaseManager.openConnection()


      at be.carglass.main.DatabaseManager.openConnection()


      at be.carglass.main.DatabaseManager.getArticleData()


      at be.carglass.main.Main.btnNewCrateActionPerformed()


      at be.carglass.main.Main.access$000()


      at be.carglass.main.Main$2.actionPerformed()


      at javax.swing.AbstractButton.fireActionPerformed()


      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed()


      at javax.swing.DefaultButtonModel.fireActionPerformed()


      at javax.swing.DefaultButtonModel.setPressed()


      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased()


      at java.awt.Component.processMouseEvent()


      at java.awt.Component.processEvent()


      at java.awt.Container.processEvent()


      at java.awt.Component.dispatchEventImpl()


      at java.awt.Container.dispatchEventImpl()


      at java.awt.Component.dispatchEvent()


      at java.awt.LightweightDispatcher.retargetMouseEvent()


      at java.awt.LightweightDispatcher.processMouseEvent()


      at java.awt.LightweightDispatcher.dispatchEvent()


      at java.awt.Container.dispatchEventImpl()


      at java.awt.Window.dispatchEventImpl()


      at java.awt.Component.dispatchEvent()


      at java.awt.EventDispatchThread.run()

      The classes111.jar is added to the netbeans platform + copy to the the crEme /lib directory.

      Which oracle driver should I use for the setup I'm programming for?

      Looking forward to your replies.

      Regards

      Frederik