db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendleton.de...@gmail.com>
Subject Re: Problem with Class.forName
Date Sun, 25 Aug 2013 16:32:17 GMT
> 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!


View raw message