I am having problems in running my Java program
<p>I'm a beginner in Java so this question might seem a little stupid, my JDK and <a href="http://en.wikipedia.org/wiki/Java_Virtual_Machine#Overview" rel="nofollow">JRE</a> are installed in <code>C:\program files</code>. I write my program and save it in in my folder, <code>G:\start</code>. </p>

<p>Now my program compiles without any error (the .class file is also generated), but when I run my program it says "<code>unable to locate G:\lib\amd64\jvm.cfg</code>", so I copy the '<code>lib</code>' folder from my JDK folder and paste it in <code>G:</code>. Again program compiles without any error, but when I run it, it gives me a new error saying "<code>unable to locate G:\bin\server\jvm.dll</code>", so I copy the 'bin' folder to <code>g:</code>, but now when I run, it gives me the same error again "<code>unable to locate G:\bin\server\jvm.dll</code>". Where am I going wrong?</p>
