1)
the problem does not come when i compile java to class file ,
but it gives eror called this is for application

java.lang.method not available


2).when i make an applet it works properly for both cimpiletation and exe