Search code examples
javaderby

java dont' see CLASSPATH


1) I have setted the variable CLASSPATH through my computuer -> System variables;

2) restarted the console and typed echo %CLASSPATH%, the CLASSPATH was setted and the value was:

C:\Program Files\Java\jdk1.7.0_25\db\lib - this is where the derby.jar was and other related files

3) then I've typed java org.apache.derby.tools.ij and I get this error:

Error: Could not find or load main class org.apache.derby.tools.ij

I'am using windows xp, what I've did wrong?


Solution

  • Add derbytools.jar to the class path and run the below command. ij class is present in the derbytools.jar

    java org.apache.derby.tools.ij