* findclass failure
@ 2011-02-22 9:01 Jaap de Jong
2011-02-22 14:46 ` Henning Heinold
0 siblings, 1 reply; 3+ messages in thread
From: Jaap de Jong @ 2011-02-22 9:01 UTC (permalink / raw)
To: openembedded-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: findclass failure
2011-02-22 9:01 findclass failure Jaap de Jong
@ 2011-02-22 14:46 ` Henning Heinold
2011-02-23 9:21 ` Jaap de Jong
0 siblings, 1 reply; 3+ messages in thread
From: Henning Heinold @ 2011-02-22 14:46 UTC (permalink / raw)
To: openembedded-devel
Hi Jaap,
better ask on the cacao-ml. Thats no oe specific.
Bye Henning
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: findclass failure
2011-02-22 14:46 ` Henning Heinold
@ 2011-02-23 9:21 ` Jaap de Jong
0 siblings, 0 replies; 3+ messages in thread
From: Jaap de Jong @ 2011-02-23 9:21 UTC (permalink / raw)
To: openembedded-devel
You are so right, sorry for the noise...
On 02/22/2011 03:46 PM, Henning Heinold wrote:
> Hi Jaap,
>
> better ask on the cacao-ml. Thats no oe specific.
>
> Bye Henning
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-23 9:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-22 9:01 findclass failure Jaap de Jong
2011-02-22 14:46 ` Henning Heinold
2011-02-23 9:21 ` Jaap de Jong
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.