Hello fiends,
I have the following code and when i execute this code. i get the error
Code:
run:
java.lang.NoClassDefFoundError: TransactionTest 
Exception in thread "main" 
Exception in thread "main" Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
though i able to run another java code which has the SELECT statement.

Could any one help me?
thz
Priya


Code:
import java.sql.*;
 
class TransactionTest  
{
 
public static void main(java.lang.String[ ] args) 
{
try
 
{
 
Class.forName("com.ibm.db2.jcc.DB2Driver").newInstance();
Connection con = DriverManager.getConnection( "jdbc:db2://localhost:50000/SALES","svpriyan","priya59799@tue");
Statement s = con.createStatement();
 
  try
 {
  con.setAutoCommit( false ); 
 s.executeUpdate("UPDATE Mysales SET salesid=9 salesdate=2009-07-28 unitsold=10 uprice=20.00 WHERE custID ='c0001' AND prodid='p001' " );
con.commit(); 
}catch( SQLException e ) { con.rollback(); } 
  
// call up the calculation methods & then return the values.
 
finally{ con.close(); s.close(); }
 } catch( Exception e ){ e.printStackTrace(); }
 
 }
 
 }