Could not create Java virtual machine - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Could not create Java virtual machine (/Thread-Could-not-create-Java-virtual-machine) |
Could not create Java virtual machine - TangShake - 02-23-2011 Hello, We develop java apps which start via webstart. We have problems with QTP 11 (trial version). When we try to start our application we receive an error: "Could not create java virtual machine". When we clear the environment variable: name: JAVA_TOOL_OPTIONS value: -agentlib:jvmhook we are able to launch application but QTP doesn't recognize java objects (We have all java add-in installed). Thank u for any suggestions RE: Could not create Java virtual machine - xman - 03-22-2011 There is a document from HP about how to fix your issue: http://support.openview.hp.com/selfsolve/document/KM543247 RE: Could not create Java virtual machine - walshmagger - 10-26-2017 (03-22-2011, 01:16 AM)xman Wrote: There is a document from HP about how to fix your issue: Most of the time you can fix this problem by uninstalling the Java runtime and then reinstalling it all over again. You can also try increasing the amount of system memory allocated to the Java virtual machine by setting an environment variable. Open the Control Panel Go to System Go to Advanced Systems Properties Then Environment Variables In System Variables, click Add New Variable Name: _JAVA_OPTIONS New Variable Value: -Xmx512M Click OK That's it, your Java program should now be able to execute properly. For those interested, Java -Xmx/s is the configuration parameter that control the amount of memory Java uses. Xmx sets the maximum heap memory size Xms sets the minimum heap memory size : |