Hi, I'm trying to write some code to connect my MIDlet to a database and I keep getting this compile error:

package javax.servlet does not exist

It does infact exists and I just can't figure out why I'm getting this error. :confused: What am I donig wrong?

Thanks,
chuck

Why are you trying to use J2EE classes from J2ME?
And why are you trying to do something with a servlet when you want to connect to a database?

I seriously doubt though that you can connect to a database from J2ME at all, afaik it doesn't support JDBC.

Ok, I guess the best bet is to create a server and connect via wireless to it. Db connection on the server side will be easy enough.

Thanks.

chuck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.