I am developing a Web based application. For that, I dont want to distribute the entire JDK, but only that 'much', as it is required for deployment, and execution. For that, I plan to keep all the needed files (like server\jvm.dll from JDK's JRE copied to Program Files JRE\bin\server\jvm.dll). Please suggest me a solution to do so. Also, if in case, I dont have any option other than keeping the JDK as it is, can I delete the JDK\jre, and force the application to use Program Files JRE, by adding the server\jvm.dll, as stated above?
This is strange. You are writing a web application, so obviously, it will be deployed on a web/app server.
The web/app server will anyways use a JDK specified by the user. A web application can not run in it's own JDK!
All application servers depend on jvm.dll to be locally installed on the client machine. For any web application going on application severs there will always be a JRE installation. BEA ( Oracle) Weblogic Server for example comes with a custom JVM called jRockit. Developers are encouraged to work in jRockit in development mode.