Why do you try to call your Applet code from your Servlet? Why does your Applet not have an init() method?
Are you aware that Servlets run on the server and Applets run in the client browser? If you are looking to have a n Applet tell you the version of Java the client browser is using you'll need to write an Applet that send this data as a request to the Servlet. Also, are you aware that the Object tag can be used to specify the Java version?
I want to check the java version in client side when the request comes.Thats why i want to load it from servlet.Is init() method is compulsory for applet programming.But when i run the applet alone it is working.