On Thursday 03 July 2003 19:34, Prabu Subroto wrote:
Exception in thread "main" java.lang.NoClassDefFoundError: konek
It seems that java is unable to find "konek". So here's what you need to verified: 1. You need to run java with [-cp ".:path_to_adabas_jar"] parameter. Notice the "." part? It instructs java to include current path when searching for classes. Without ".", you'll get "NoClassDefFOundError: konek". 2. With [-cp ".;path_to_adabass_jar"], from the previous mail, you got: Hallo Prabu JDBC driver for Adabas D not found Error 0 No suitable driver This means "konek" has been executed, but adabas jdbc driver can't be located. In your code, try to add e.printStackTrace() in both of the catch blocks, i.e try (...) { ... } catch (...) { .... e.printStackTrace(); } This will give more detail of the error. Hopefully you'll find something. 3. Make sure you're instantiating the correct class -- is it "adabas" or "de.sag.jdbc.adabasd.ADriver"? I tend to believe that it should be "de.sag.jdbc.adabasd.ADriver". 4. If everything has been verified, as the last resort, try to unzipping adabasd.jar (you can simply use unzip) to, say /tmp/haha/, then make sure that file /tmp/haha de/sag/jdbc/adabasd/ADriver.class exists. -- -- Verdi March --