db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nshaw <...@docharley.com>
Subject RE: Problem with Class.forName
Date Sat, 24 Aug 2013 18:19:24 GMT
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:ml-node+s10148n133430h43@n7.nabble.com] 
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:

http://apache-database.10148.n7.nabble.com/Problem-with-Class-forName-tp1334
22p133430.html 

To unsubscribe from Problem with Class.forName, click here
<http://apache-database.10148.n7.nabble.com/template/NamlServlet.jtp?macro=u
nsubscribe_by_code&node=133422&code=ZG9jQGRvY2hhcmxleS5jb218MTMzNDIyfDEwNzc4
MTQ4NjY=> .
 
<http://apache-database.10148.n7.nabble.com/template/NamlServlet.jtp?macro=m
acro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespace
s.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.te
mplate.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-in
stant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
NAML 





--
View this message in context: http://apache-database.10148.n7.nabble.com/Problem-with-Class-forName-tp133422p133433.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.
Mime
View raw message