RE: [suse-programming-e] JDBC + Adabas D + SuSE 8.2 (first time)
Hi, That's because you wrote system, not System when you catch the exception... -----Mensaje original----- De: Prabu Subroto [mailto:prabu_subroto@yahoo.com] Enviado el: Monday, June 30, 2003 4:12 PM Para: Suse Programming Milis Asunto: [suse-programming-e] 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!
Solved, thank you Gustavo. I really appreciate you help. Please help me in this JDBC problem. I am really confused. Please help me to answer my other problem. Gustavo Dutra <gdutra@topsystems.com.uy> wrote: Hi, That's because you wrote system, not System when you catch the exception... -----Mensaje original----- De: Prabu Subroto [mailto:prabu_subroto@yahoo.com] Enviado el: Monday, June 30, 2003 4:12 PM Para: Suse Programming Milis Asunto: [suse-programming-e] 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! -- 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)
-
Gustavo Dutra
-
Prabu Subroto