Solved

how to create database using javadb

Posted on 2012-03-15
6
642 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

705 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

20 Experts available now in Live!

Get 1:1 Help Now