JDBC help needed; java.lang.NoClassDefFoundError

'Loading Derby JDBC Driver Classes' tutorial was cited in a Sun forum post in 2008.

The Loading Derby JDBC Driver Classes tutorial was cited in a Sun forum post in 2008.

Subject: JDBC help needed; java.lang.NoClassDefFoundError:test1
Date: Jan 18, 2008
Author: Xiao
Source: http://forums.sun.com/thread.jspa?threadID=5255641

hi, everyone, i had a problem when i run my own app to connect javadb
in embedded mode

i ve added the ~/javadb/lib/derby.jar to CLASSPATH
and ~/javadb/lib/derby.jar:~/javadb/lib/derbytools.jar to DERBY_HOME
but there is a problem said my own application class cannot be found.

here is my code:
import java.sql.*;

class test1
  public static void main (String args [])
       throws SQLException


and i ve followed one Derby JDBC tutorial on the internet,

 * AutoLoadJdbcDriver.java
 * Copyright (c) 2007 by Dr. Herong Yang. All rights reserved.
import java.sql.*;
import java.util.*;
public class AutoLoadJdbcDriver {
  public static void main(String [] args) {
    Connection con = null;

Table of Contents

 About This Book

 Reference Citations in 2021

 Reference Citations in 2020

 Reference Citations in 2019

 Reference Citations in 2018

 Reference Citations in 2017

 Reference Citations in 2016

 Reference Citations in 2015

 Reference Citations in 2014

 Reference Citations in 2013

 Reference Citations in 2012

 Reference Citations in 2011

 Reference Citations in 2010

 Reference Citations in 2009

Reference Citations in 2008

 QaTraq Pro API

 Service Oriented Computing for Dynamic Virtual Learning Environments

 Inverted ?

 Migrating files to new computer

 mswsock.dll!WSPStartup +0x102b


 MSSQL binary data

 Correct Character Encoding

 Put icons on bookmarks sidebar folders

 Blob Storage via REST from Java?

 java.lang.OutOfMemoryError: unable to create new native thread

 Obróbka filmów VOB

 ASP Search Function

 SSLHandshakeException unable to find valid certification...

 Using response.setContentType to switch HTML to Word

 Automatic Creation of Different Types of Test Subjects

 ISM 6121 Information Systems Implementation


 Time out bei Aufruf von WebService (php-Script)

 Store and retrieve Chinese characters using Coldfusion MX7 and MySQL5.0

 converting VCD player to DVD player


 αρχειο .pl

 Using ASP.Net c# To add/edit/delete data (ms access)

 regarding JDBC

 A UML/SPT Model Analysis Methodology

 Creation d'un nouvel utilisateur sous SQL Server 2000

 No Suitable Driver connecting jdk1.5 with javaDB derby

 Page in Chinese

 Acessar MSAccess com Hibernate

 SiLu – Riktlinjer för spelmotor

 [WebService] come fare?

JDBC help needed; java.lang.NoClassDefFoundError

 CSV export of tickets has wrong encoding

 MapGuide Manual - Active selections

 Reference Citations in 2007

 Reference Citations in 2006

 Reference Citations in 2005

 Reference Citations in 2004

 Reference Citations in 2003