Yes, that command works, Bryan.

Here's the output:

 

debug:

java.lang.ClassNotFoundException: org.apache.derby.jdbc.ClientDriver

               at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

               at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

               at java.security.AccessController.doPrivileged(Native Method)

               at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

               at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

               at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

               at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

               at java.lang.Class.forName0(Native Method)

               at java.lang.Class.forName(Class.java:186)

               at tmembers.NewTest.<init>(NewTest.java:22)

               at tmembers.NewTest.main(NewTest.java:61)

 

Best Regards,

 

Nick.

From: Bryan Pendleton-3 [via Apache Database] [mailto:[hidden email]]
Sent: Saturday, August 24, 2013 1:23 PM
To: nshaw
Subject: Re: Problem with Class.forName

 

> C:\Users\Doc>java org.apache.derby.tools.sysinfo
> --------- Derby Information --------
> JRE - JDBC: Java SE 7 - JDBC 4.0
> [C:\Program Files\Java\jdk1.7.0_25\db\lib\derby.jar] 10.8.2.2 - (1181258)
> [C:\Program Files\Java\jdk1.7.0_25\db\lib\derbytools.jar] 10.8.2.2 -
> (1181258)
> [C:\Program Files\Java\jdk1.7.0_25\db\lib\derbynet.jar] 10.8.2.2 - (1181258)
> [C:\Program Files\Java\jdk1.7.0_25\db\lib\derbyclient.jar] 10.8.2.2 -
> (1181258)

This looks pretty good.

And I assume that, with this classpath, you can run

        java org.apache.derby.tools.ij

without problems as well? (If you get the "ij>" prompt, just type "quit;")

If you're getting this far, this means that your CLASSPATH
is fine, as far as Derby is concerned.

What exact exception are you getting? In your "catch" block, add
       
        e.printStackTrace();

and paste the output back to us.

thanks,

bryan



If you reply to this email, your message will be added to the discussion below:

click here.
NAML



View this message in context: RE: Problem with Class.forName
Sent from the Apache Derby Users mailing list archive at Nabble.com.