Android Question Mysql library error

samperizal

Active Member
Licensed User
Longtime User
Regards.

I'm about to use mysql library first for a project and run the sample to the next error.

LogCat connected to: emulator-5554
: Null, 0
java.lang.ClassNotFoundException: from $ donmanfred $ B4A $ MySQL
at anywheresoftware.b4a.shell.Shell.getCorrectClassName (Shell.java:544)
at anywheresoftware.b4a.shell.Shell.createObject (Shell.java:516)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl (Shell.java:320)
at anywheresoftware.b4a.shell.Shell.raiseEvent (Shell.java:238)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:521)
at anywheresoftware.b4a.ShellBA.raiseEvent2 (ShellBA.java:121)
at b4a.example.main.initializeGlobals (main.java:306)
at b4a.example.main.afterFirstLayout (main.java:97)
b4a.example.main.access at $ 100 (main.java:17)
b4a.example.main at $ WaitForLayout.run (main.java:78)
at android.os.Handler.handleCallback (Handler.java:587)
at android.os.Handler.dispatchMessage (Handler.java:92)
at android.os.Looper.loop (Looper.java:123)
at android.app.ActivityThread.main (ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:521)
com.android.internal.os.ZygoteInit at $ MethodAndArgsCaller.run (ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:626)
at dalvik.system.NativeStart.main (Native Method)
** Activity (main) Create, isFirst = true **
** Activity (main) ** Resume
** Activity (main) Pause, UserClosed = true **


thx.
 

DonManfred

Expert
Licensed User
Longtime User
did you copied mysql-connector-java-5.1.34-bin.jar to your additional libs folder?
You need
mysql-connector-java-5.1.34-bin.jar
MSMySQL.jar
and
MSMySQL.xml

If you already have all these files in your additionallibs-folder then maybe you should create a small project which shows the problem.
 
Upvote 0
Top