TechieDrill Your World Of Technical Tutorials

Setting Environment for Apache Derby and Connecting to DB

11.20.2009 · Posted in Java

Setting Environment for Apache Derby

Goto command prompt by keying on cmd from Run application launcher.

Goto your java classpath and give the below command

> java org.apache.derby.tools.ij

Now your command prompt would change as shown below

ij>

Note: you may get errors if classpath is not set correctly

Connecting to the database

Connect to the database by giving the below command in the Derby ij tool

ij> connect ‘jdbc:derby:SampleTest;create=true’;

Leave a Reply

You must be logged in to post a comment.