Reputation: 11
I am all very new to database systems. I am trying to connect derby to Eclipse by passing in this command
java org.apache.derby.tools.ij
under the external tools configurations in the "Arguments" section. I have set the location to
/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java
and the error is that it "Could not find or load main class org.apache.derby.tools.ij".
I have tried using javac and javadoc but still, have had no success. Also, I have and OS machine.
Ideally, when this is set up properly I can start inserting to the database when I see ij> in the console.
Upvotes: 1
Views: 1261
Reputation: 20003
You have to specify a classpath, either using a command line argument or by setting it into the environment, so that the java
command knows where to find the main class you want it to run.
https://docs.oracle.com/javase/8/docs/technotes/tools/windows/classpath.html or run java -help
for a short guide of its common arguments.
Upvotes: 1