Solved

how to create database using javadb

Posted on 2012-03-15
6
657 Views
Last Modified: 2012-03-15
I want to create an application for tracking orders of a cloth designing company using java,javadb and netbeans. The company makes tailor made wedding outfits for brides and grooms they want to keep track of the orders. i am creating the application on netbeans..i want to know how do i create database in javadb..i have a code with me,i  was told to run the code inorder to create the database bt i got the following error -


java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
SimpleApp finished
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at Database.TableCreation.main(TableCreation.java:12)
BUILD SUCCESSFUL (total time: 0 seconds)


.. pls go through the attached code and tell me where i am goin wrong..
table-creation.doc
0
Comment
Question by:daydreamer6565
  • 3
  • 2
6 Comments
 
LVL 35

Assisted Solution

by:mccarl
mccarl earned 100 total points
ID: 37728062
Do you have the Derby JAR(s) in the classpath?
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37728065
You need to download this jar and put it in the classpath:

http://findjar.com/jar/org/apache/derby/derby/10.5.3.0_1/derby-10.5.3.0_1.jar.html
0
 
LVL 47

Accepted Solution

by:
for_yan earned 400 total points
ID: 37728066
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:daydreamer6565
ID: 37728074
shud i install derby ? i mean i have heard that i comes along wid netbeans and we dont have to install it..
0
 

Author Comment

by:daydreamer6565
ID: 37728084
i have downloaded the above jar.. where shud i save it ? how?
0
 

Author Comment

by:daydreamer6565
ID: 37728091
k i got it ...thanx
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHPStorm debugging issues 1 70
Visual Studio 2013 and Eclipse Neon 6 67
eclipse console opening separately 2 35
java mysql insert application 14 41
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question