>Caused by: java.lang.ClassNotFoundException: classfiles.Person
my sympathies. This is my least favourite run time error.
See http://mindprod.com/jgloss/caq.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Hi Sharp,
Sharp Tool schrieb:
> Hi,
>
[quoted text clipped - 14 lines]
> this.name = name;
> }
[more code]
> /*Run-time error message */
> org.josql.QueryParseException: Unable to load FROM class: classfiles.Person
> at org.josql.Query.parse(Query.java:1783)
> at classfiles.JavaSQL.start(JavaSQL.java:25)
[stack trace]
> Press any key to continue...
I had success to run this code, but I had to change the visibility of
Person.name to public.
I had the following envrionment:
./classfiles
./classfiles/Person.class
./classfiles/JavaSQL.class
./JoSQL-1.0.jar
./3rd-party-jars/gentlyWEB-utils-1.1.jar
I have used the JVM from Sun (1.5.0_02), and I called it with:
$ java -cp .:./3rd-party-jars/gentlyWEB-utils-1.1.jar:./JoSQL-1.0.jar
classfiles/JavaSQL
The (correct) result was:
bar
foo
Hope that helps,
Christian
Sharp Tool - 23 Oct 2005 15:03 GMT
> Hi Sharp,
>
[quoted text clipped - 52 lines]
>
> Christian
Thanks it helped.
My problem was I put the *.jar files in the jdk/jre/ext/
and the java and class files in a desktop folder.
I made sure everything pointed in the right direction but still doesn't
work.
You want to give it a try?
Sharp
Christian - 23 Oct 2005 16:25 GMT
Hi, Sharp,
Sharp Tool schrieb:
> My problem was I put the *.jar files in the jdk/jre/ext/
> and the java and class files in a desktop folder.
>
> I made sure everything pointed in the right direction but still doesn't
> work.
> You want to give it a try?
Jup.
Now I could reproduce the error. Its the JoSQL-1.0.jar. If its in the
ext-directory, the execution will fail :-( The 3rd-party jar does not
make any problems. It also fails, when the JoSQL jar is in the current
directory and it is not "referenced" through the classpath but via the
java property java.ext.dirs.
So I think you found a bug in the package, concerning the reflection
mechanism used in it.
Greetings,
Christian