--- Dan <[EMAIL PROTECTED]> wrote:
> Log in to server, no changes makes that means no JAVA_HOME set
> unmodified PATH and LD_LIBRARY_PATH not set took the generated .so
> library and the windows native jar:
> [EMAIL PROTECTED] /home/Homedev/jdbcTest> javac -classpath
> sqlitejdbc-v036-nested.jar Foo.java
> [EMAIL PROTECTED] /home/Homedev/jdbcTest> which java
> /usr/bin/java
> [EMAIL PROTECTED] /home/Homedev/jdbcTest> java -cp sqlitejdbc-v036-
> nested.jar:. Foo
> a = 123, b = dog, c = 67.89
> a = 345, b = cat, c = 8.349
> a = 789, b = pig, c = -44.5678
Okay, so far so good.
What is the output of the following commands?
/usr/bin/java -version
/usr/bin/javac -version
which javac
> [EMAIL PROTECTED] /home/Homedev/jdbcTest> export LD_LIBRARY_PATH=.
> [EMAIL PROTECTED] /home/Homedev/jdbcTest> java -cp sqlitejdbc-v036-
> native.jar:. Foo
> Exception in thread "main" java.lang.NoClassDefFoundError: org/ibex/
> nestedvm/Runtime$CallJavaCB
The above error suggests that sqlitejdbc-v036-native.jar was not built
correctly. Did you build it yourself or is it from the website?
Can you use any sqlitejdbc-v036-native.jar from the website instead?
They should be the same from either Windows or the Mac tar files.
Try it with and without the Solaris sqlitejdbc shared library in the
same directory. Do a "chmod +x" on the solaris shared library just in case.
> And then I made an other test with modified path and java on
> jdk1.5.0_12:
> [EMAIL PROTECTED] /home/Homedev/jdbcTest> which java
> /usr/jdk1.5.0_12/bin/java
> [EMAIL PROTECTED] /home/Homedev/jdbcTest> which javac
> /usr/jdk1.5.0_12/bin/javac
> [EMAIL PROTECTED] /home/Homedev/jdbcTest> javac -classpath
> sqlitejdbc-v036-nested.jar Foo.java
> [EMAIL PROTECTED] /home/Homedev/jdbcTest> java -cp sqlitejdbc-v036-
> nested.jar:. Foo
> java.sql.SQLException: no SQLite library found
> at org.sqlite.Conn.<init>(Conn.java:55)
> at org.sqlite.JDBC.connect(JDBC.java:38)
I'm not sure why you're getting a different error here when it
worked fine above. What happens when you use the Foo.class
file from the successful run (i.e., compile using /usr/bin/javac),
but run it with /usr/jdk1.5.0_12/bin/java ?
I don't think this stuff is an sqlitejdbc problem, but a problem with
your solaris environment or java setup.
____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the
Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/
--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---