Sorry to hear you're having problemst Atif,
Obviously reading any articles and books you can get your hands on is the ideal solution but to get you started here is an example of a typical compile call - try it with a very simple midlet class and let me know if you are still having problems.
Stuff in <brackets> are comments - do not enter.
javac -g:none <switch off debugging support> -bootclasspath <enter path to wherever you have installed j2me>/lib/midpapi.zip <this replaces the standard
Java classes with the j2me versions> -classpath <enter path to wherever you have installed j2me>/lib/kvem.jar HelloWorld.java <or whatever your class is called>
Hope this helps