Hello everyone, I am new to Android development, and somewhat new to Java, but have a good amount of C++ knowledge. I am having trouble using imported .jar files to use in my code. I am trying to use the PostgreSQL JDBC driver with my application, and I cannot create a connection. As soon as I run this line of code:
Connection conn = DriverManager.getConnection("jdbc:postgresql:// localhost/demo", "mfgadmin", "mfgadmin"); This is what the log looks like: 01-16 02:53:46.556: WARN/ActivityManager(47): Launch timeout has expired, giving up wake lock! 01-16 02:53:46.942: WARN/ActivityManager(47): Activity idle timeout for HistoryRecord{434ccdf8 {com.xtuple.android/ com.xtuple.android.xtuple}} 01-16 02:53:50.024: WARN/dalvikvm(240): VFY: unable to resolve static field 23 01-16 02:53:50.024: WARN/dalvikvm(240): VFY: rejecting opcode 0x62 at 0x0005 01-16 02:53:50.024: WARN/dalvikvm(240): VFY: rejected Lorg/postgresql/ jdbc4/AbstractJdbc4Connection;.setClientInfo (Ljava/lang/String;Ljava/ lang/String;)V 01-16 02:53:50.024: WARN/dalvikvm(240): Verifier rejected class Lorg/ postgresql/jdbc4/AbstractJdbc4Connection; 01-16 02:53:51.994: DEBUG/dalvikvm(92): GC freed 1232 objects / 64072 bytes in 53ms I have followed the documentation for version 8.3 found here: http://jdbc.postgresql.org/documentation/docs.html using the driver found here: http://jdbc.postgresql.org/download.html (JDBC4). I am using eclipse 3.4 with android plug-in on Mac OS X. I also tried in Ubuntu and recieved the same error. Thanks for any help you can give. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---