I got the code for connecting java midlet to mysql in three parts[midlet,servlet and standard java]. but netbeans doesn't allow except midlet in Mobile Proje开发者_StackOverflow社区ct which i created from_____________________ file->new project ->java me->mobile application.
Cldc doesn't support JDBC API's. You won't be able to connect the database directly. You can use HttpConnection
for this. See the following links for your reference,
DataBase Connection Using J2ME
How to Connect With MYSQL Database On J2ME
Nokia forum discussion
精彩评论