Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

I have made runnable jar file and it works well if I run it in windows(where I made this jar file) prompt but its keeps failing in linux terminal I

I have made runnable jar file and it works well if I run it in windows(where I made this jar file) prompt but its keeps failing in linux terminal

I think the problem is to set library path or something but i have no clue how to do this

Please help me

red 184 % java -jar Search_and_Purchase.jar

com.ibm.db2.jcc.am.SqlException: [jcc][10389][12245][4.19.66] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null

    at com.ibm.db2.jcc.am.kd.a(kd.java:731)

    at com.ibm.db2.jcc.am.kd.a(kd.java:66)

    at com.ibm.db2.jcc.am.kd.a(kd.java:102)

    at com.ibm.db2.jcc.t2.a.a(a.java:37)

    at com.ibm.db2.jcc.t2.T2Configuration.<clinit>(T2Configuration.java:95)

    at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:432)

    at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:112)

    at java.sql.DriverManager.getConnection(DriverManager.java:664)

    at java.sql.DriverManager.getConnection(DriverManager.java:270)

    at Search_and_Purchase.<init>(Search_and_Purchase.java:54)

    at Search_and_Purchase.main(Search_and_Purchase.java:446)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)

com.ibm.db2.jcc.am.SqlException: [jcc][10389][12245][4.19.66] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null

    at com.ibm.db2.jcc.am.kd.a(kd.java:731)

    at com.ibm.db2.jcc.am.kd.a(kd.java:66)

    at com.ibm.db2.jcc.am.kd.a(kd.java:102)

    at com.ibm.db2.jcc.t2.a.a(a.java:37)

    at com.ibm.db2.jcc.t2.T2Configuration.<clinit>(T2Configuration.java:95)

    at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:432)

    at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:112)

    at java.sql.DriverManager.getConnection(DriverManager.java:664)

    at java.sql.DriverManager.getConnection(DriverManager.java:270)

    at Search_and_Purchase.<init>(Search_and_Purchase.java:54)

    at Search_and_Purchase.main(Search_and_Purchase.java:446)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)

SQL: database connection error.

com.ibm.db2.jcc.am.SqlException: [jcc][10389][12245][4.19.66] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question