Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Could not create Java virtual machine
#1
Solved: 11 Years, 3 Months, 2 Weeks ago
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
Reply
#2
Solved: 11 Years, 3 Months, 2 Weeks ago
There is a document from HP about how to fix your issue:
http://support.openview.hp.com/selfsolve...t/KM543247
Reply
#3
Solved: 11 Years, 3 Months, 2 Weeks ago
(03-22-2011, 01:16 AM)xman Wrote: There is a document from HP about how to fix your issue:
http://support.openview.hp.com/selfsolve...t/KM543247

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 :
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  virtual objects do not work kawagnes 0 1,092 08-28-2020, 12:02 PM
Last Post: kawagnes
  machine lock unlock uft_usr 0 1,743 06-21-2016, 09:52 PM
Last Post: uft_usr
  cannot create java virtual machine on QTP 12.02 version richa5685 0 1,954 02-23-2016, 11:18 AM
Last Post: richa5685
  Need to identify whether excel is installed in QTP machine kalyaniR 2 2,552 10-25-2013, 12:45 PM
Last Post: kalyaniR
  Installing QTP -Freeware on Multiple Machine sangi 1 2,784 06-11-2013, 06:13 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)