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?


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.