Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [eclipse-dev] connection to db2

Your code is good. I've never seen this new error.

Did you put the driver archive (C:/sqllib/java/db2java.zip) in the
classpath?

Can you put the above file in the JVM classpath settings?

--------------------------------------------------------
Riccardo Angelilli
Software Engineer
Tivoli Software, IBM Software Group
Phone: +39.06.5966.2699  Tie: -62699
E-mail: Riccardo.Angelilli@xxxxxxxxxx
--------------------------------------------------------


                                                                                                                                        
                      "Ahu Eryuruk                                                                                                      
                      (Garanti                  To:       <eclipse-dev@xxxxxxxxxxx>                                                     
                      Teknoloji)"               cc:                                                                                     
                      <AhuEr@xxxxxxxxxxx        Subject:  RE: [eclipse-dev] connectiong to db2                                          
                      .tr>                                                                                                              
                      Sent by:                                                                                                          
                      eclipse-dev-admin@                                                                                                
                      eclipse.org                                                                                                       
                                                                                                                                        
                                                                                                                                        
                      08/08/2002 02:10                                                                                                  
                      PM                                                                                                                
                      Please respond to                                                                                                 
                      eclipse-dev                                                                                                       
                                                                                                                                        
                                                                                                                                        



Hi Ricardo,
I was using the following code:
        Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
        String url = "jdbc:db2:" + dbname;
        con = DriverManager.getConnection(url, user, password);
I changed the first line as :
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();

Now I receive: "java.lang.UnsatisfiedLinkError: no db2jdbc in
java.library.path"

I added -Djava.library.path=c:/sqllib/bin*db2jdbc.dll as JVM parameter in
the preferences,Tomcat/JVM Settings.
The result is the same.....
Ahu
_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/eclipse-dev






Back to the top