Closed GoogleCodeExporter closed 9 years ago
This error happens when there is a mixup between the native (C language) and
the Java edition of BerkeleyDB. The native jar is named something like
db-5.xx.xx.jar while the Java edition will be je-5.0.34.jar. The two libraries
have similar packages but different and incompatible classes, so when both are
present in the classpath, things go awry.
I made a simple project out of your files. Simplified the pom to remove web
related libs and put Index.java in src/main/java.
then I just run:
mvn exec:java -Dexec.mainClass=Index
and it works.
If my assumption is correct, I have to idea how you ended up with both native
and java edition dependencies, but that would be the first thing to analyze.
Original comment by borislav...@gmail.com
on 8 Jul 2013 at 6:13
Attachments:
You are right! i check the Maven Dependencies that a load at eclipse and i spot
db-5.3.15.jar and je-5.0.34.jar.I go to hgdb maven and check the pom i fibd
out that db-5.3.15.jar so call by hgbdbnative which is a dependency of hgdbowl
and je-5.0.34.jar is a dependency of hgbdbje
i need hgdb to store owl only, so i delete the the hgdbje this remove the
je.jar i have not test it yet, but i believe this will solve me problem
Thank for your time
Chris Givanoudis
Original comment by chgi...@gmail.com
on 8 Jul 2013 at 7:43
Chris,
Yes, that should solve your problem. If you use native, remember to specify the
java.library.path to the DLL (or .so) with the native code.
Note also that you could use the Java edition (i.e. hgbdbje and je-5.0.34) to
store OWL. I'm not sure why the OWL project pom contains native as a
dependency, but there's no particular reason. Could be one or the other.
Original comment by borislav...@gmail.com
on 8 Jul 2013 at 7:57
Original comment by borislav...@gmail.com
on 16 Sep 2013 at 6:39
Original issue reported on code.google.com by
chgi...@gmail.com
on 7 Jul 2013 at 1:35Attachments: