Mailinglist Archive: opensuse-programming (105 mails)

< Previous Next >
Re: [suse-programming-e] JDBC + Adabas D + SuSE 8.2 (first time)
  • From: Prabu Subroto <prabu_subroto@xxxxxxxxx>
  • Date: Tue, 1 Jul 2003 02:42:55 -0700 (PDT)
  • Message-id: <20030701094255.92767.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Solved, Thank you very much expatriate. I really appreciate your help.

expatriate <lbox@xxxxxxxxxxxxxxx> 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@xxxxxxxx
For additional commands, email: suse-programming-e-help@xxxxxxxx
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!
< Previous Next >
List Navigation