All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaap de Jong <jaap.dejong@nedap.com>
To: "openembedded-devel@lists.openembedded.org"
	<openembedded-devel@lists.openembedded.org>
Subject: findclass failure
Date: Tue, 22 Feb 2011 10:01:45 +0100	[thread overview]
Message-ID: <4D637B79.4060503@nedap.com> (raw)

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




             reply	other threads:[~2011-02-22  9:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-22  9:01 Jaap de Jong [this message]
2011-02-22 14:46 ` findclass failure Henning Heinold
2011-02-23  9:21   ` Jaap de Jong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D637B79.4060503@nedap.com \
    --to=jaap.dejong@nedap.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.