1 Reply Latest reply: Mar 21, 2013 8:04 AM by user1160090 RSS

    Berkeley DB XML Can't load 32-bit .dll on a 64-bit platform Netbeans

      Hi I am trying to use Berkely DB in netbeans java on 64-bit windows platform. I have downloaded and configured JDK 7 32 bit in project properties. It works well for a simple java project but when i do the same for a web application in netbeans for glassfish or Apache Tomcat Servers it gives this exception

      [Servlet execution threw an exception] with root cause
      java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Oracle\Berkeley DB XML 2.5.16\bin\libdb_java48.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
           at java.lang.ClassLoader$NativeLibrary.load(Native Method)
           at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
           at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
           at java.lang.Runtime.loadLibrary0(Runtime.java:823)
           at java.lang.System.loadLibrary(System.java:1028)
           at com.sleepycat.db.internal.db_javaJNI.<clinit>(db_javaJNI.java:38)
           at com.sleepycat.db.internal.DbEnv.<init>(DbEnv.java:264)
           at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:77)
           at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:101)

      This problem was also coming before for simple java app but it resolved after configuring jdk in project properties but for web application its not working