[oe] findclass failure
Jaap de Jong
jaap.dejong at nedap.com
Tue Feb 22 09:01:45 UTC 2011
Hi All,
I'm having some trouble running sqlitejdbc.
With the zero jvm it runs ok, but with cacao it won't.
# java -zero -classpath .:/usr/share/java
-Djava.library.path=/usr/lib/jni Test
name = Gandhi
job = politics
name = Turing
job = computers
name = Wittgenstein
job = smartypants
# java -cacao -classpath .:/usr/share/java
-Djava.library.path=/usr/lib/jni Test
Exception in thread "main" java.sql.SQLException: no SQLite library found
at org.sqlite.Conn.<init>(Conn.java:84)
at org.sqlite.JDBC.connect(JDBC.java:64)
at java.sql.DriverManager.getConnection(DriverManager.java:620)
at java.sql.DriverManager.getConnection(DriverManager.java:222)
at Test.main(Test.java:6)
Tracking this, I've come to this statement in NativeDB.c (jni)
dbclass = (*env)->FindClass(env, "org/sqlite/NativeDB");
It looks like cacao uses a different way handling its classpath?
Adding code:
dbclass = (*env)->FindClass(env, "java/lang/String");
does find the class...
So, FindClass does not always fail.
Any ideas?
Thanks!
Jaap
More information about the Openembedded-devel
mailing list