db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kim Haase <Camilla.Ha...@Sun.COM>
Subject Re: Hello
Date Tue, 01 Dec 2009 17:59:47 GMT
This error can happen if you do not have the current directory in your 
classpath. Did you follow all the instructions in the "Setting up your 
environment" section, including "Manually setting the CLASSPATH 
environment variable"?

Kim Haase

On 12/01/09 12:51, velimzo wrote:
> I am new in Derby. 
> Here is my problem:
> I am following "Getting Started With Java DB" instructions.
> Problem occures when I try to follow instructions for "Run a JDBC program
> using the embedded driver".
> I compiled successfully WwdEmbedded.java, not following instructions but
> with a command javac *.java
> When I try to run WwdEmbedded.java there is an error that looks like this:
> -----------------------------------------------------------------------
> C:\Documents and Settings\Zoran\Desktop\DERBYTUTOR>java WwdEmbedded
> Exception in thread "main" java.lang.NoClassDefFoundError: WwdEmbedded
> Caused by: java.lang.ClassNotFoundException: WwdEmbedded
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> Could not find the main class: WwdEmbedded.  Program will exit.
> -------------------------------------------------------------------------
> My version of Java is : Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Version of Derby is : Derby
> Operating System : Windows XP sp3
> I am thankful on every answer...

View raw message