1 2 3 Previous Next 30 Replies Latest reply on Dec 7, 2009 9:30 AM by 721257

    no db_java-4.8 in java.library.path

    721257
      Hi,

      I got this error while trying to run my application.

      Where can I find this file? SO that I am able to set the $LD_LIBRARY_PATH correctly

      Appreciate some help
      Thanks!
      :)
        • 1. Re: no db_java-4.8 in java.library.path
          "Andrei Costache, Oracle-Oracle"
          Hi,

          Take a look at Berkeley DB Programmer's Reference Guide section about the Java API here:
          [http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/java.html|http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/java.html]
          and the sections on building and using Berkeley DB XML on UNIX/POSIX systems and dynamic shared libraries:
          [http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/intro.html|http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/intro.html]
          [http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/notes.html|http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/notes.html]
          [http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/shlib.html|http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/shlib.html]
          This issue has been discussed in other threads, to mention just a few:
          Re: java API on linux
          UnsatisfiedLinkError: no db_java-4.6 in java.library.path
          Problem with Berkeley DB XML

          Regards,
          Andrei
          • 2. Re: no db_java-4.8 in java.library.path
            721257
            Hi,

            Thanks for your reply.

            I did a buildall.sh on a Linux box and then ftp the entire dbxml-2.5.13 folder to another Linux box (without doing a build because the other box do not have a gcc). DO you think that cause the error?

            Thanks
            :)
            • 3. Re: no db_java-4.8 in java.library.path
              "Andrei Costache, Oracle-Oracle"
              Hi,

              The default build (buildall.sh) does not produce the Java libraries, that is, it does not build the Java API. You have to use the "--enable-java" option as per the instructions here:
              [http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/intro.html]
              Have you looked into the documentation I pointed to?
              [http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/notes.html] (last section, "Building Java Applications")
              [http://www.oracle.com/technology/documentation/berkeley-db/xml/ref_xml/xml_unix/shlib.html]
              They all explain how to set the CLASSPATH and LD_LIBRARY_PATH environment variables.

              The default build installs the libraries under the "dbxml-2.5.13/install" directory.
              Have you verified the LD_LIBRARY_PATH setting on the destination machine? (>echo $LD_LIBRARY_PATH)
              Is it correct, that is, is it pointing to the directory where the libraries were copied via ftp?
              export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path_to_bdbdxml_distribution/install/lib
              export CLASSPATH=$CLASSPATH:path_to_bdbdxml_distribution/install/lib/db.jar:path_to_bdbdxml_distribution/install/lib/dbxml.jar
              (or whatever is appropriate for your shell to set environment variables)

              Regards,
              Andrei
              • 4. Re: no db_java-4.8 in java.library.path
                721257
                Hi Andrei,

                What I meant is that I did a buildall.ah --enable-java and my app  worked well on the first Linux box. The second Linux do not have a gcc thus I copied the entire folder over and was encountered with this problem.

                Was asking if coping it from one Linux box to another without doing a build on the 2nd machine do work at all?

                Thanks!
                :)
                • 5. Re: no db_java-4.8 in java.library.path
                  655560
                  Hi,

                  If your account is not the running user who execute the program, make sure that your application has privilege to visit your lib file and path.
                  For example, if your file is located at:
                  $HOME/path_to_bdbdxml_distribution/install/lib/db.jar
                  Make sure that the program can access $HOME/, path_to_bdbdxml_distribution, install, lib and db.jar

                  A quick test way is added a simple file open code in your java code, to see whether you program can open the jar file.

                  Thanks,
                  • 6. Re: no db_java-4.8 in java.library.path
                    721257
                    Hi rucong,

                    I run a command on my Linux box
                    /app/java/jrockit-R27.4.0-jdk1.5.0_12-64bit/bin/java -Djava.library.path=/app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib -cp ../lib/Aggregator.jar:../lib/db.jar:../lib/dbxml.jar ag.SaveMessageinDB
                    where /app/java/jrockit-R27.4.0-jdk1.5.0_12-64bit/bin/ is the path where java is in, /app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib is where the dbxml library is in and
                    /Aggregator_Multiple_sending/lib is where the Aggregator.jar, db.jar and dbxml.jar is in.

                    sg.SaveMessageinDB is in the Aggregator.jar

                    The error message is:
                    Environment created...
                    Exception in thread "Main Thread" java.lang.UnsatisfiedLinkError: no dbxml_java-2.5 in java.library.path
                            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
                            at java.lang.Runtime.loadLibrary0(Runtime.java:822)
                            at java.lang.System.loadLibrary(System.java:993)
                            at com.sleepycat.dbxml.dbxml_javaJNI.<clinit>(dbxml_javaJNI.java:49)
                            at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:55)
                            at ag.SaveMessageinDB.setXmlManager(SaveMessageinDB.java:146)
                            at ag.SaveMessageinDB.<init>(SaveMessageinDB.java:54)
                            at ag.SaveMessageinDB.main(SaveMessageinDB.java:286)
                    Apparently my program has started from the "Environment created". But cant seem to find the dbxml_java-2.5

                    Any help appreciated.. thanx!!
                    :)
                    • 7. Re: no db_java-4.8 in java.library.path
                      655560
                      Hi,

                      Please do a quick test:
                      1. Is /app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib/dbxml.jar readable? What's it's file size?
                      2. Apply absolute path on the "-cp" argument and try to execute the command again.
                      • 8. Re: no db_java-4.8 in java.library.path
                        721257
                        Hi rucong,

                        I did the following:
                        Aggregator_Multiple_sending/lib> /app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib/db.jar
                        /app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib/db.jar: Permission denied.
                        Aggregator_Multiple_sending/lib> /app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib/dbxml.jar
                        /app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib/dbxml.jar: Permission denied.
                        I did the same to the machine that my application can run on and it gives the same result. Surely its not because of this?

                        So I run the jar on the directory:
                        install/lib> db.jar
                        db.jar: Command not found.
                        install/lib> dbxml.jar
                        dbxml.jar: Command not found.
                        Then I used the absolute path:
                        Aggregator_Multiple_sending/lib> /app/java/jrockit-R27.4.0-jdk1.5.0_12-64bit/bin/java -Djava.library.path=/app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib -cp /app/rdg/release/bin/AggServer/Aggregator_Multiple_sending/lib/Aggregator.jar:/app/rdg/release/bin/AggServer/Aggregator_Multiple_sending/lib/db.jar:/app/rdg/release/bin/AggServer/Aggregator_Multiple_sending/lib/dbxml.jar ag.SaveMessageinDB
                        Environment created...
                        Exception in thread "Main Thread" java.lang.UnsatisfiedLinkError: no dbxml_java-2.5 in java.library.path
                                at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
                                at java.lang.Runtime.loadLibrary0(Runtime.java:822)
                                at java.lang.System.loadLibrary(System.java:993)
                                at com.sleepycat.dbxml.dbxml_javaJNI.<clinit>(dbxml_javaJNI.java:49)
                                at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:55)
                                at ag.SaveMessageinDB.setXmlManager(SaveMessageinDB.java:146)
                                at ag.SaveMessageinDB.<init>(SaveMessageinDB.java:54)
                                at ag.SaveMessageinDB.main(SaveMessageinDB.java:286)
                        The same error......
                        • 9. Re: no db_java-4.8 in java.library.path
                          655560
                          *.jar is not execute-able file. So you have to:
                          ls -l /app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib/
                          Pls paste the command output.
                          • 10. Re: no db_java-4.8 in java.library.path
                            721257
                            Here is it:
                            total 100088
                            -r--r----- 1 rdgadmin rdgdev   528715 2009-12-01 03:30 db.jar
                            -rw-r----- 1 rdgadmin rdgdev    79482 2009-12-01 09:09 dbxml.jar
                            -rw-r----- 1 rdgadmin rdgdev  2971506 2009-12-01 03:30 libdb-4.8.a
                            -rw-r----- 1 rdgadmin rdgdev      956 2009-12-01 03:28 libdb-4.8.la
                            -rwxr-x--- 1 rdgadmin rdgdev  2187862 2009-12-01 03:28 libdb-4.8.so
                            lrwxrwxrwx 1 rdgadmin rdgdev       12 2009-12-03 07:28 libdb-4.so -> libdb-4.8.so
                            -rw-r----- 1 rdgadmin rdgdev  2971506 2009-12-01 03:30 libdb.a
                            -rw-r----- 1 rdgadmin rdgdev  3231616 2009-12-01 03:30 libdb_cxx-4.8.a
                            -rw-r----- 1 rdgadmin rdgdev     1036 2009-12-01 03:29 libdb_cxx-4.8.la
                            -rwxr-x--- 1 rdgadmin rdgdev  2375309 2009-12-01 03:29 libdb_cxx-4.8.so
                            lrwxrwxrwx 1 rdgadmin rdgdev       16 2009-12-03 07:28 libdb_cxx-4.so -> libdb_cxx-4.8.so
                            -rw-r----- 1 rdgadmin rdgdev  3231616 2009-12-01 03:30 libdb_cxx.a
                            lrwxrwxrwx 1 rdgadmin rdgdev       16 2009-12-03 07:28 libdb_cxx.so -> libdb_cxx-4.8.so
                            -rw-r----- 1 rdgadmin rdgdev  3290434 2009-12-01 03:30 libdb_java-4.8.a
                            lrwxrwxrwx 1 rdgadmin rdgdev       17 2009-12-03 07:28 libdb_java-4.8_g.so -> libdb_java-4.8.so
                            -rw-r----- 1 rdgadmin rdgdev      991 2009-12-01 03:29 libdb_java-4.8.la
                            -rwxr-x--- 1 rdgadmin rdgdev  2469421 2009-12-01 03:29 libdb_java-4.8.so
                            lrwxrwxrwx 1 rdgadmin rdgdev       17 2009-12-03 07:28 libdb_java-4.so -> libdb_java-4.8.so
                            lrwxrwxrwx 1 rdgadmin rdgdev       17 2009-12-03 07:28 libdb_java.so -> libdb_java-4.8.so
                            lrwxrwxrwx 1 rdgadmin rdgdev       12 2009-12-03 07:28 libdb.so -> libdb-4.8.so
                            -rwxr-x--- 1 rdgadmin rdgdev  5663290 2009-12-01 09:09 libdbxml-2.5.so
                            -rw-r----- 1 rdgadmin rdgdev 15403988 2009-12-01 09:09 libdbxml.a
                            -rwxr-x--- 1 rdgadmin rdgdev   757215 2009-12-01 09:09 libdbxml_java-2.5.so
                            -rw-r----- 1 rdgadmin rdgdev  1160604 2009-12-01 09:09 libdbxml_java.a
                            -rwxr-x--- 1 rdgadmin rdgdev     1326 2009-12-01 09:09 libdbxml_java.la
                            lrwxrwxrwx 1 rdgadmin rdgdev       20 2009-12-03 07:28 libdbxml_java.so -> libdbxml_java-2.5.so
                            -rwxr-x--- 1 rdgadmin rdgdev     1240 2009-12-01 09:09 libdbxml.la
                            lrwxrwxrwx 1 rdgadmin rdgdev       15 2009-12-03 07:28 libdbxml.so -> libdbxml-2.5.so
                            -rwxr-x--- 1 rdgadmin rdgdev  5903056 2009-12-01 03:45 libxerces-c-3.0.so
                            -rw-r----- 1 rdgadmin rdgdev 17138506 2009-12-01 03:45 libxerces-c.a
                            -rwxr-x--- 1 rdgadmin rdgdev      929 2009-12-01 03:45 libxerces-c.la
                            lrwxrwxrwx 1 rdgadmin rdgdev       18 2009-12-03 07:28 libxerces-c.so -> libxerces-c-3.0.so
                            -rw-r----- 1 rdgadmin rdgdev 24239516 2009-12-01 04:04 libxqilla.a
                            -rwxr-x--- 1 rdgadmin rdgdev     1167 2009-12-01 04:04 libxqilla.la
                            lrwxrwxrwx 1 rdgadmin rdgdev       18 2009-12-03 07:28 libxqilla.so -> libxqilla.so.5.0.2
                            lrwxrwxrwx 1 rdgadmin rdgdev       18 2009-12-03 07:28 libxqilla.so.5 -> libxqilla.so.5.0.2
                            -rwxr-x--- 1 rdgadmin rdgdev  8657994 2009-12-01 04:04 libxqilla.so.5.0.2
                            -rw-r----- 1 rdgadmin rdgdev       33 2009-12-07 02:09 test.sh
                            Thanks!
                            • 11. Re: no db_java-4.8 in java.library.path
                              655560
                              The file creator and owner are not the same -- one is rdgadmin and the other is rdgdev. What's account are you using to execute the command? If the account you are using is not the file owner, the program can not access the libs.

                              If you can not run program by rdgadmin account, try to modify the file privilege(refer UNIX command handbook). Here is the list on my platform:
                              -r--r--r-- 1 rucong rucong   553429 2009-11-30 14:19 db.jar
                              -rw-r--r-- 1 rucong rucong    82657 2009-11-30 14:38 dbxml.jar
                              -rw-r--r-- 1 rucong rucong 15580386 2009-11-30 14:19 libdb-4.8.a
                              -rw-r--r-- 1 rucong rucong      964 2009-10-26 16:09 libdb-4.8.la
                              -rwxr-xr-x 1 rucong rucong  9370212 2009-10-26 16:09 libdb-4.8.so
                              lrwxrwxrwx 1 rucong rucong       12 2009-11-30 14:19 libdb-4.so -> libdb-4.8.so
                              -rw-r--r-- 1 rucong rucong 15580386 2009-11-30 14:19 libdb.a
                              -rw-r--r-- 1 rucong rucong 16789200 2009-11-30 14:19 libdb_cxx-4.8.a
                              -rw-r--r-- 1 rucong rucong      992 2009-10-26 16:09 libdb_cxx-4.8.la
                              -rwxr-xr-x 1 rucong rucong 10111134 2009-10-26 16:09 libdb_cxx-4.8.so
                              lrwxrwxrwx 1 rucong rucong       16 2009-11-30 14:19 libdb_cxx-4.so -> libdb_cxx-4.8.so
                              -rw-r--r-- 1 rucong rucong 16789200 2009-11-30 14:19 libdb_cxx.a
                              lrwxrwxrwx 1 rucong rucong       16 2009-11-30 14:19 libdb_cxx.so -> libdb_cxx-4.8.so
                              -rw-r--r-- 1 rucong rucong 15776020 2009-11-30 14:19 libdb_java-4.8.a
                              lrwxrwxrwx 1 rucong rucong       17 2009-11-30 14:19 libdb_java-4.8_g.so -> libdb_java-4.8.so
                              -rw-r--r-- 1 rucong rucong      999 2009-11-30 14:19 libdb_java-4.8.la
                              -rwxr-xr-x 1 rucong rucong  9570137 2009-11-30 14:19 libdb_java-4.8.so
                              lrwxrwxrwx 1 rucong rucong       17 2009-11-30 14:19 libdb_java-4.so -> libdb_java-4.8.so
                              lrwxrwxrwx 1 rucong rucong       17 2009-11-30 14:19 libdb_java.so -> libdb_java-4.8.so
                              lrwxrwxrwx 1 rucong rucong       12 2009-11-30 14:19 libdb.so -> libdb-4.8.so
                              -rwxr-xr-x 1 rucong rucong  3397775 2009-11-30 14:38 libdbxml-2.5.so
                              -rw-r--r-- 1 rucong rucong  6013358 2009-11-30 14:38 libdbxml.a
                              -rwxr-xr-x 1 rucong rucong   581192 2009-11-30 14:38 libdbxml_java-2.5.so
                              -rw-r--r-- 1 rucong rucong   603890 2009-11-30 14:38 libdbxml_java.a
                              -rwxr-xr-x 1 rucong rucong     1372 2009-11-30 14:38 libdbxml_java.la
                              lrwxrwxrwx 1 rucong rucong       20 2009-11-30 14:38 libdbxml_java.so -> libdbxml_java-2.5.so
                              -rwxr-xr-x 1 rucong rucong     1278 2009-11-30 14:38 libdbxml.la
                              lrwxrwxrwx 1 rucong rucong       15 2009-11-30 14:38 libdbxml.so -> libdbxml-2.5.so
                              -rwxr-xr-x 1 rucong rucong 18707972 2009-11-30 14:20 libxerces-c-3.0.so
                              -rw-r--r-- 1 rucong rucong 46292514 2009-11-30 14:20 libxerces-c.a
                              -rwxr-xr-x 1 rucong rucong      885 2009-11-30 14:20 libxerces-c.la
                              lrwxrwxrwx 1 rucong rucong       18 2009-11-30 14:20 libxerces-c.so -> libxerces-c-3.0.so
                              -rw-r--r-- 1 rucong rucong 25180444 2009-11-30 14:29 libxqilla.a
                              -rwxr-xr-x 1 rucong rucong     1147 2009-11-30 14:29 libxqilla.la
                              lrwxrwxrwx 1 rucong rucong       18 2009-11-30 14:29 libxqilla.so -> libxqilla.so.5.0.2
                              lrwxrwxrwx 1 rucong rucong       18 2009-11-30 14:29 libxqilla.so.5 -> libxqilla.so.5.0.2
                              -rwxr-xr-x 1 rucong rucong 12385121 2009-11-30 14:29 libxqilla.so.5.0.2
                              • 12. Re: no db_java-4.8 in java.library.path
                                721257
                                Thanks rucong..

                                Will change the file access and try again.... :)
                                • 13. Re: no db_java-4.8 in java.library.path
                                  721257
                                  Hi rucong,

                                  I have changed the previleges for the file access to be similar to yours
                                  install/lib> ls -l
                                  total 100088
                                  -r--r--r-- 1 rdgadmin rdgdev   528715 2009-12-01 03:30 db.jar
                                  -rw-r--r-- 1 rdgadmin rdgdev    79482 2009-12-01 09:09 dbxml.jar
                                  -rw-r--r-- 1 rdgadmin rdgdev  2971506 2009-12-01 03:30 libdb-4.8.a
                                  -rw-r--r-- 1 rdgadmin rdgdev      956 2009-12-01 03:28 libdb-4.8.la
                                  -rwxr-xr-x 1 rdgadmin rdgdev  2187862 2009-12-01 03:28 libdb-4.8.so
                                  lrwxrwxrwx 1 rdgadmin rdgdev       12 2009-12-03 07:28 libdb-4.so -> libdb-4.8.so
                                  -rw-r--r-- 1 rdgadmin rdgdev  2971506 2009-12-01 03:30 libdb.a
                                  -rw-r--r-- 1 rdgadmin rdgdev  3231616 2009-12-01 03:30 libdb_cxx-4.8.a
                                  -rw-r--r-- 1 rdgadmin rdgdev     1036 2009-12-01 03:29 libdb_cxx-4.8.la
                                  -rwxr-xr-x 1 rdgadmin rdgdev  2375309 2009-12-01 03:29 libdb_cxx-4.8.so
                                  lrwxrwxrwx 1 rdgadmin rdgdev       16 2009-12-03 07:28 libdb_cxx-4.so -> libdb_cxx-4.8.so
                                  -rw-r--r-- 1 rdgadmin rdgdev  3231616 2009-12-01 03:30 libdb_cxx.a
                                  lrwxrwxrwx 1 rdgadmin rdgdev       16 2009-12-03 07:28 libdb_cxx.so -> libdb_cxx-4.8.so
                                  -rw-r--r-- 1 rdgadmin rdgdev  3290434 2009-12-01 03:30 libdb_java-4.8.a
                                  lrwxrwxrwx 1 rdgadmin rdgdev       17 2009-12-03 07:28 libdb_java-4.8_g.so -> libdb_java-4.8.so
                                  -rw-r--r-- 1 rdgadmin rdgdev      991 2009-12-01 03:29 libdb_java-4.8.la
                                  -rwxr-xr-x 1 rdgadmin rdgdev  2469421 2009-12-01 03:29 libdb_java-4.8.so
                                  lrwxrwxrwx 1 rdgadmin rdgdev       17 2009-12-03 07:28 libdb_java-4.so -> libdb_java-4.8.so
                                  lrwxrwxrwx 1 rdgadmin rdgdev       17 2009-12-03 07:28 libdb_java.so -> libdb_java-4.8.so
                                  lrwxrwxrwx 1 rdgadmin rdgdev       12 2009-12-03 07:28 libdb.so -> libdb-4.8.so
                                  -rwxr-xr-x 1 rdgadmin rdgdev  5663290 2009-12-01 09:09 libdbxml-2.5.so
                                  -rw-r--r-- 1 rdgadmin rdgdev 15403988 2009-12-01 09:09 libdbxml.a
                                  -rwxr-xr-x 1 rdgadmin rdgdev   757215 2009-12-01 09:09 libdbxml_java-2.5.so
                                  -rw-r--r-- 1 rdgadmin rdgdev  1160604 2009-12-01 09:09 libdbxml_java.a
                                  -rwxr-xr-x 1 rdgadmin rdgdev     1326 2009-12-01 09:09 libdbxml_java.la
                                  lrwxrwxrwx 1 rdgadmin rdgdev       20 2009-12-03 07:28 libdbxml_java.so -> libdbxml_java-2.5.so
                                  -rwxr-xr-x 1 rdgadmin rdgdev     1240 2009-12-01 09:09 libdbxml.la
                                  lrwxrwxrwx 1 rdgadmin rdgdev       15 2009-12-03 07:28 libdbxml.so -> libdbxml-2.5.so
                                  -rwxr-xr-x 1 rdgadmin rdgdev  5903056 2009-12-01 03:45 libxerces-c-3.0.so
                                  -rw-r--r-- 1 rdgadmin rdgdev 17138506 2009-12-01 03:45 libxerces-c.a
                                  -rwxr-xr-x 1 rdgadmin rdgdev      929 2009-12-01 03:45 libxerces-c.la
                                  lrwxrwxrwx 1 rdgadmin rdgdev       18 2009-12-03 07:28 libxerces-c.so -> libxerces-c-3.0.so
                                  -rw-r--r-- 1 rdgadmin rdgdev 24239516 2009-12-01 04:04 libxqilla.a
                                  -rwxr-xr-x 1 rdgadmin rdgdev     1167 2009-12-01 04:04 libxqilla.la
                                  lrwxrwxrwx 1 rdgadmin rdgdev       18 2009-12-03 07:28 libxqilla.so -> libxqilla.so.5.0.2
                                  lrwxrwxrwx 1 rdgadmin rdgdev       18 2009-12-03 07:28 libxqilla.so.5 -> libxqilla.so.5.0.2
                                  -rwxr-xr-x 1 rdgadmin rdgdev  8657994 2009-12-01 04:04 libxqilla.so.5.0.2
                                  and tried running it again..using absolute path....but still the same error:
                                  Aggregator_Multiple_sending/bin> /app/java/jrockit-R27.4.0-jdk1.5.0_12-64bit/bin/java -Djava.library.path=/app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib -cp /app/rdg/release/bin/AggServer/Aggregator_Multiple_sending/lib/Aggregator.jar:/app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib/db.jar:/app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib/dbxml.jar ag.SaveMessageinDB
                                  Environment created...
                                  Exception in thread "Main Thread" java.lang.UnsatisfiedLinkError: no dbxml_java-2.5 in java.library.path
                                          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
                                          at java.lang.Runtime.loadLibrary0(Runtime.java:822)
                                          at java.lang.System.loadLibrary(System.java:993)
                                          at com.sleepycat.dbxml.dbxml_javaJNI.<clinit>(dbxml_javaJNI.java:49)
                                          at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:55)
                                          at ag.SaveMessageinDB.setXmlManager(SaveMessageinDB.java:146)
                                          at ag.SaveMessageinDB.<init>(SaveMessageinDB.java:54)
                                          at ag.SaveMessageinDB.main(SaveMessageinDB.java:286)
                                  :(
                                  • 14. Re: no db_java-4.8 in java.library.path
                                    655560
                                    Hi,

                                    By your information, I doubt that your account can not access the path, not the file.

                                    What's the account are you using to execute the command? Please give the answer.

                                    For example, if your running account is rdgdev, please:
                                    su rdgdev
                                    cd /app/rdg/release/bin/AggServer/dbxml-2.5.13/install/lib
                                    Please try above commands to see whether your running account can access the lib path.
                                    1 2 3 Previous Next