Solved

how to create database using javadb

Posted on 2012-03-15
6
665 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 36

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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

630 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