i am trying to implement
Java Tips - Sending Email from J2ME devices

in the netbeans but i have problem with servlet
when i have wrote (Servlet to send email )code in web application
it work okay but i cant compile it to jar file

when i have wrote in servlet in midp it doesnt work