I just reinstalled Jrun and my Jdk and now I get this error when I run a
simple code below.
Does anyone know where I can download jdk1.3.02 because I remember it worked
fine with this Jdk but I cannot find it anywhere.
Bert
java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
Exception in thread "main"
Tool completed with exit code 1
import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
class MyExample {
public static void main(String[]args) {
Connection conn = null;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection("jdbc:odbc:company");
Statement stmt = conn.createStatement();
String query = "Select * from Company_info";
ResultSet rs = stmt.executeQuery(query);
while (rs.next() )
System.out.print(rs.getString(1) + ""+
rs.getString(2) + ""+
rs.getString(3));
}catch(Exception e) {e.printStackTrace(System.err);}
finally{
try{
conn.close();
}catch(Exception e) {e.printStackTrace(System.err);}
}
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists