Mailinglist Archive: opensuse-programming (105 mails)

< Previous Next >
Re: [suse-programming-e] Exception in thread (JDBC for adabas D first use)
  • From: Prabu Subroto <prabu_subroto@xxxxxxxxx>
  • Date: Wed, 2 Jul 2003 04:33:32 -0700 (PDT)
  • Message-id: <20030702113332.81539.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Dear Tinus.

And for windows client which character should I use instead of ":."?
Because I found :
"
e:\prabu\kerja>java -classpath adabasd.jar:. konek
Exception in thread "main" java.lang.NoClassDefFoundError: konek
"

The "konek.class" and "adabasd.jar" are located under the same directory, namely : "e:\prabu\kerja". I simply copied the "adabasd.jar" into the directory.

What should I do now? Please help me.

Martijn Houtman <tinus@xxxxxxxxxxxx> wrote:
On Wednesday 02 July 2003 12:53, Prabu Subroto wrote:
> Dear my friends...
>
> I am developing a database application with Star Office, Adabas D, SuSE
> 8.2, Java and JDBC.
>
> This is my first experience in using JDBC and Adabas D. Usually I use PHP
> and MySQL. So please help me, I need many advices.
>
> I copy the adabasd.jar into the same directory where my application code
> (on Java language located). It is compiled successfully but it is not able
> to build a connection between my Adabas D and my application over JDBC. The
> error message is :
> "
> #prabu>java -classpath adabasd.jar konek
> Exception in thread "main" java.lang.NoClassDefFoundError : konek
> "

You have to use the classpath "adabasd.jar:."
This means you have to include the current dir (".'

--
tinus

___________________________________________________
"Words are weightless here on earth
Because they're free." -- Josh Homme

% echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc



---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
< Previous Next >
Follow Ups
References