Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to create database using javadb

Posted on 2012-03-15
6
Medium Priority
?
668 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 400 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 1600 total points
ID: 37728066
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

719 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