db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Re: ERROR 42X51 class not found
Date Sat, 24 Oct 2009 17:40:40 GMT
Thomas Hill wrote:
> I am getting this error:
> 
> miniserver:/var/lib/derby/db-derby-10.5.3.0-bin/lib# java
> derbyPk.Functions.TF_Clients_AI2
> Exception in thread "main" java.lang.NoClassDefFoundError:
> derbyPk/Functions/TF_Clients_AI2
> Caused by: java.lang.ClassNotFoundException: derbyPk.Functions.TF_Clients_AI2
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: derbyPk.Functions.TF_Clients_AI2.  
> Program will exit.
> 
> here the proof that classpath is set:
> miniserver:/var/lib/derby/db-derby-10.5.3.0-bin/lib# echo $CLASSPATH
> /var/lib/derby/db-derby-10.5.3.0-bin/lib/
> 
> and yes folder /var/lib/derby/db-derby-10.5.3.0-bin/lib/ does contain a folder
> derbyPk and yes there is a file Functions.class and yes in Functions.java there
> is a function TF_Clients_AI2 which is defined as public.

Is TF_Clients_AI2 a class or a method?

Doing java derbyPk.Functions.TF_Clients_AI2 will attempt to load a 
*class* named derbyPk.Functions.TF_Clients_AI2. From your description it 
seems that the class is derbyPk.Functions and it has a method called 
TF_Clients_AI2 inside it.

Dan.

Mime
View raw message