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 Thu, 29 Aug 2013 10:03:48 GMT
Good morning, Bryan,


Problem solved.  I solved the problem by going into the NetBeans IDE and
under the 'Run' tab, selecting 'Configure Project Settings', adding my
CLASSPATH information under 'add JAR files/directory '.  So for every
application I run, I'll make sure I configure project settings with the JAR


Again, thank you for all you help!

Best Regards,




From: Bryan Pendleton-3 [via Apache Database]
Sent: Sunday, August 25, 2013 12:34 PM
To: nshaw
Subject: Re: Problem with Class.forName


> I don't know where to go at this point 

I'm sure you can fix this, but it is certainly subtle. 

Did you try running '-verbose:class'? 

Have you done your very utmost to cut your program down to 
the minimal version that reproduces the problem? Is it now 
as tiny as: 

   public class Test { 
        static public void main( String[] args ) 
                throws Exception 
                Class.forName( "org.apache.derby.jdbc.ClientDriver" ); 

and with that program, and your %CLASSPATH%, can you run 

        java Test 

Since you are on Windows, and it's easy to reproduce, try this: 

1) Go to Microsoft's web site and download Process Monitor: 

2) Start process monitor, start capturing events, and run 
    your program. 

3) In the Process Monitor display, look very closely through 
    the traces for 'java.exe' running your program. You should 
    be able to see the java interpreter looking through your 
    classpath, looking at each of the jar files, and you should 
    be able to see if it's encountering a filesystem security 
    problem, or a file-not-found problem, or something else that's 
    weird like that. 

Keep on trying, you'll figure it out! 



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


To unsubscribe from Problem with Class.forName, click here
MTQ4NjY=> .

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