3 Replies Latest reply on Dec 1, 2005 5:45 AM by 473216

    java.lang.NoClassDefFoundError: oracle/dms/instrument/ExecutionContextForJD

    jade_king
      what's wrong with the oracle xe
      version:oracle-xe-10.2.0.1-0.1
      the connection code is:

      OracleDataSource ods = new OracleDataSource();
                     ods.setUser("abc");
                     ods.setPassword("123456");
      ods.setURL("jdbc:oracle:thin:@localhost:1521:XE");
      Connection conn = ods.getConnection();

      i have invoke the package classes12dms_g.jar and ojdbc14_g.jar,but when i run it show those errors:


      Exception in thread "main" java.lang.NoClassDefFoundError: oracle/dms/instrument/ExecutionContextForJDBC
           at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:308)
           at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:150)
           at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
           at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:602)
           at java.sql.DriverManager.getConnection(DriverManager.java:525)
           at java.sql.DriverManager.getConnection(DriverManager.java:171)
           at test.DaAcess.main(DaAcess.java:24)