This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Android and the fly likes mysql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "mysql" Watch "mysql" New topic
Author

mysql

shalini revathi
Greenhorn

Joined: Feb 24, 2013
Posts: 2
hi,

i need to connect to mysql database for my application.i am doing my database connectivity with asyntask.i am able to connect with databse and reteive data but i am receiving some errors while running in my emulator.. these are my errors

1.Could not find method javax.naming.Reference.get, referenced from method com.mysql.jdbc.ConnectionPropertiesImpl$Connection Property.initializeFrom

2.Could not find class 'javax.naming.StringRefAddr', referenced from method com.mysql.jdbc.ConnectionPropertiesImpl$Connection Property.storeTo

3.Could not find method java.lang.management.ManagementFactory.getThreadMX Bean, referenced from method com.mysql.jdbc.MysqlIO.appendDeadlockStatusInforma tion

how can i correct this? any help

regards

shalini
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
You need to find an Android-compatible version of the Mysql driver, the one you're using needs Java functionality that Android doesn't have. I'm not sure if such a driver exists - using JDBC over the internet is not a good idea for security reasons, so few people do it.


Ping & DNS - updated with new look and Ping home screen widget
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

Hi Welcome to javaranch, can you show us your code.


Life is easy because we write the source code.....
shalini revathi
Greenhorn

Joined: Feb 24, 2013
Posts: 2
hi Ulf,
thanks for your reply.. i chossed to connect with web service
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mysql
 
Similar Threads
JDBC MySQL Driver Connection
Sockets
Database connections in JNDI
i couldn't run jdbc progam in netbeans
MySQL Connector/J