JDBC + Adabas D + SuSE 8.2 (first time)
Dear my friends... I am developing a database application with Adabas D Database Server and Sun Java. The connection between the Adabas D and my application will be built by JDBC (adabasd.jar). My DBROOT is : /usr/sag/aad/v1201 The JDBC driver of Adabas D is under : /usr/sag/aad/v1201/lib Here is my code : === import java.sql.*; public class konek { public static void main(String[] args) { System.out.println("Hallo Indonesia"); try { Class.forName("de.sag.jdbc.adabasd.aDriver"); } catch (ClassNotFoundException e){ system.out.println("JDBC driver for Adabas D not found"); }; try { java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:adabasd://susefujitsu/iamsoft", "control", "duisburg"); } catch (java.sql.SQLException e) { system.out.println("Error " + e.getErrorCode() + " " + e.getMessage()); } } } === But If I compile it with this command : "javac konek.java" than I will get this error message : " konek.java:12:package system does not exist <----> system.out.println("JDBC driver for Adabas D not found"); konek.java:17:package system does not exist <----> system.out.println("Error" + e.getErrorCode() + " " + e.getMessage()); " Where is the problem ? --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Prabu Subroto wrote:
Dear my friends...
I am developing a database application with Adabas D Database Server and Sun Java. The connection between the Adabas D and my application will be built by JDBC (adabasd.jar).
My DBROOT is : /usr/sag/aad/v1201 The JDBC driver of Adabas D is under : /usr/sag/aad/v1201/lib
Here is my code : === import java.sql.*; public class konek { public static void main(String[] args) { System.out.println("Hallo Indonesia");
try { Class.forName("de.sag.jdbc.adabasd.aDriver"); } catch (ClassNotFoundException e){ system.out.println("JDBC driver for Adabas D not found"); }; try { java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:adabasd://susefujitsu/iamsoft", "control", "duisburg"); } catch (java.sql.SQLException e) { system.out.println("Error " + e.getErrorCode() + " " + e.getMessage()); } } } ===
But If I compile it with this command : "javac konek.java" than I will get this error message : " konek.java:12:package system does not exist <----> system.out.println("JDBC driver for Adabas D not found"); konek.java:17:package system does not exist <----> system.out.println("Error" + e.getErrorCode() + " " + e.getMessage()); "
Where is the problem ?
--------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
system is not a class. System is.
Solved, Thank you very much expatriate. I really appreciate your help. expatriate <lbox@nellgc.plus.com> wrote: Prabu Subroto wrote:
Dear my friends...
I am developing a database application with Adabas D Database Server and Sun Java. The connection between the Adabas D and my application will be built by JDBC (adabasd.jar).
My DBROOT is : /usr/sag/aad/v1201 The JDBC driver of Adabas D is under : /usr/sag/aad/v1201/lib
Here is my code : === import java.sql.*; public class konek { public static void main(String[] args) { System.out.println("Hallo Indonesia");
try { Class.forName("de.sag.jdbc.adabasd.aDriver"); } catch (ClassNotFoundException e){ system.out.println("JDBC driver for Adabas D not found"); }; try { java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:adabasd://susefujitsu/iamsoft", "control", "duisburg"); } catch (java.sql.SQLException e) { system.out.println("Error " + e.getErrorCode() + " " + e.getMessage()); } } } ===
But If I compile it with this command : "javac konek.java" than I will get this error message : " konek.java:12:package system does not exist <----> system.out.println("JDBC driver for Adabas D not found"); konek.java:17:package system does not exist <----> system.out.println("Error" + e.getErrorCode() + " " + e.getMessage()); "
Where is the problem ?
--------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
system is not a class. System is. -- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Solved, Thank you very much expatriate. I really appreciate your help. expatriate <lbox@nellgc.plus.com> wrote: Prabu Subroto wrote:
Dear my friends...
I am developing a database application with Adabas D Database Server and Sun Java. The connection between the Adabas D and my application will be built by JDBC (adabasd.jar).
My DBROOT is : /usr/sag/aad/v1201 The JDBC driver of Adabas D is under : /usr/sag/aad/v1201/lib
Here is my code : === import java.sql.*; public class konek { public static void main(String[] args) { System.out.println("Hallo Indonesia");
try { Class.forName("de.sag.jdbc.adabasd.aDriver"); } catch (ClassNotFoundException e){ system.out.println("JDBC driver for Adabas D not found"); }; try { java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:adabasd://susefujitsu/iamsoft", "control", "duisburg"); } catch (java.sql.SQLException e) { system.out.println("Error " + e.getErrorCode() + " " + e.getMessage()); } } } ===
But If I compile it with this command : "javac konek.java" than I will get this error message : " konek.java:12:package system does not exist <----> system.out.println("JDBC driver for Adabas D not found"); konek.java:17:package system does not exist <----> system.out.println("Error" + e.getErrorCode() + " " + e.getMessage()); "
Where is the problem ?
--------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
system is not a class. System is. -- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
participants (2)
-
expatriate
-
Prabu Subroto