Solved

how to create database using javadb

Posted on 2012-03-15
6
649 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
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…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now