0

I am trying to run one simple main java program with the help of perforce custom tools , but its giving me below error.

Could not create java virtual machine

Below are my configuration

Application :  "C:\Java\jdk1.7.0_67\bin\java.exe"
Argument : "-cp C:\Java\jdk1.7.0_67\bin com.test.mapNullInput"
Start In :C:\Java\jdk1.7.0_67\bin

Run in terminal window is checked

_JAVA_OPTION is also set in system variable.

Any idea why ?

Behzad
  • 3,502
  • 4
  • 36
  • 63
  • There are quite a few suggestions for possible causes of this problem in this question: http://stackoverflow.com/questions/7302604/eclipse-error-failed-to-create-the-java-virtual-machine – Bryan Pendleton Jul 19 '15 at 16:04
  • thanks for the help. But the issue was not this. when I provided the path for application as "C:\Java\jdk1.7.0_67\bin\java" it worked fine. – Tapan Majhi Jul 26 '15 at 09:30
  • So the solution was to omit ".exe" from the application path, because the custom tool was already adding ".exe" to the end of the path for you? Good to know, and glad you figured it out. – Bryan Pendleton Jul 26 '15 at 15:50
  • 1
    Yes Bryan , It custom tool take cares of .exe automatically.But this is the case only with ".exe". When I tried running .bat file I had to provide the extenstion ".bat" . – Tapan Majhi Jul 27 '15 at 10:54

0 Answers0