Setting Environment for Apache Derby and Connecting to DB
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’;