On Aug 29, 3:05 pm, Joe Wilson <[EMAIL PROTECTED]> wrote:
> --- 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 1.
> /usr/bin/javac -version 2.
> which javac 3.
1. java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
2. javac: invalid flag: -version
Usage: javac <options> <source files>
3. /usr/bin/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?
jar file from Windows
>
> 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.
chmod was set also before
>
> > 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 ?
>
Well still got the same error.
> I don't think this stuff is an sqlitejdbc problem, but a problem with
> your solaris environment or java setup.
>
Well the native created jar file is not corrupt because I tested it on
windows and works fine.
Hmm me and me chef are looking then on solaris installation and
configuration and java to look on that. Many thx for your help
>
> ____________________________________________________________________________________
> 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]
-~----------~----~----~----~------~----~------~--~---