Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 39326 invoked from network); 1 Dec 2009 18:00:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Dec 2009 18:00:20 -0000 Received: (qmail 72972 invoked by uid 500); 1 Dec 2009 18:00:19 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 72911 invoked by uid 500); 1 Dec 2009 18:00:19 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 72903 invoked by uid 99); 1 Dec 2009 18:00:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 18:00:19 +0000 X-ASF-Spam-Status: No, hits=-6.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.98.43] (HELO brmea-mail-2.sun.com) (192.18.98.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2009 18:00:17 +0000 Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id nB1HxuxG004548 for ; Tue, 1 Dec 2009 17:59:56 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KTZ00900J3QS600@mail-amer.sun.com> for derby-user@db.apache.org; Tue, 01 Dec 2009 10:59:56 -0700 (MST) Received: from [129.148.71.199] ([unknown] [129.148.71.199]) by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KTZ001K3JBNN670@mail-amer.sun.com> for derby-user@db.apache.org; Tue, 01 Dec 2009 10:59:48 -0700 (MST) Date: Tue, 01 Dec 2009 12:59:47 -0500 From: Kim Haase Subject: Re: Hello In-reply-to: <26595406.post@talk.nabble.com> Sender: Camilla.Haase@Sun.COM To: Derby Discussion Reply-to: Camilla.Haase@Sun.COM Message-id: <4B155993.5040702@Sun.COM> References: <26595406.post@talk.nabble.com> User-Agent: Thunderbird 2.0.0.23 (X11/20090910) 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 10.5.3.0 > Operating System : Windows XP sp3 > > I am thankful on every answer...