Hi Joe,

Well I hope you will be so happy as I am on writing the final post
yeahhhh finally.
Yes Everything works now and also all test with the junit passed.

Explication on what we did now that it works:
The command "truss" given by was very very helpful. I run your
application with the truss command in fromt and piped everything in a
file. And then we studied that file. Well and there we saw that he
finds the native jar and also the shared library that was created. But
then we saw that there are some other libraries that he couldn't find
the native jar.

And our problem was that to find software for solaris is not so easy
there is one website sunfreeware.com where you can get most programs.
And while solaris hasn't the gcc we took it from there and istalled it
but what we didn't remember is that when we install programs from
these site the shared libraries will be paste in /usr/local/lib and
not /usr/lib and so the native jar was seaarching for a shared library
of the gcc on /usr/lib and our own directory and while he couldn't
find this he gaves back that no SQLITE library was found. Perhaps the
native jar needs this gcc shared library to run the sharedlibrary of
sqlite.

And so we added the /usr/local/lib to LD_LIBRAR_PATH and your program
also runs now with the native. Then we tested it on our own
application and also this started and ended well. And at last we tried
to compile again the native jar and so library by setting java_home on
jdk1.5 and adding to path and also adding LD_LIBRARY_PATH with gcc
shared libraries and the the compilation runs fine to the end with 0
errors.

For the junit tests it is just to extract the junit.jar and then to
copy the directory org & junit to build directory.

So if David is interessed I can send him the native jar with the so
library which will work on solaris sparc9 to add on his homepage ;)

Many thanks for your help Wilson thx thx thx


On Aug 29, 4:15 pm, Joe Wilson <[EMAIL PROTECTED]> wrote:
> >     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)
>
> Ok. This version should be good enough to build or run sqlitejdbc, but not
> perform the Junit tests because they rely on new Java features introduced
> in 1.5.
>
> > > > [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
>
> It may be that the native jar file excludes the nestedvm classes.
>
> It did not find the sqlitejdbc shared library and tried to fall back
> on the NestedDB class.
>
> > > 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
>
> Just for the heck of it, try putting sqlitejdbc-v036-nested.jar, the
> /usr/bin/javac compiled Foo.class and your solaris libsqlitejdbc.so in
> the same directory on Solaris and running this with Java 1.4.2:
>
>   LD_LIBRARY_PATH=. /usr/bin/java -cp sqlitejdbc-v036-nested.jar:. Foo
>
> But even if it runs, the only way you can tell if it is using the native
> shared library is with 'truss', I suspect. Well, and the speed should be
> faster on a big select or insert.
>
> > > 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.
>
> That makes no sense at all.
> There's something wrong with the Solaris Java 1.5 install or environment.
> It should run as your Java 1.4 test ran.
>
> > > 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
>
> I'm out of ideas.
> Good luck.
>
>       
> ___________________________________________________________________________-_________
> Luggage? GPS? Comic books?
> Check out fitting gifts for grads at Yahoo! 
> Searchhttp://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz


--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to