问题
Why didn't StarTeam 2008 Release 2 Client install correctly on my machine? Whenever I try to launch it, I get a “Could not create the Java virtual machine” error.
回答1:
Rather than being a problem locating the Java Virtual Machine, as I’d previously thought, turns out it’s a memory allocation issue.
In StarTeamCP.stjava, the default option set is -Xmx1024m
. My machine doesn’t have a gig of RAM to spare for a Java VM, hence the error.
By setting it to -Xmx512m
, I was able to get up and running.
See also my blog entry about this.
来源:https://stackoverflow.com/questions/5315921/get-could-not-create-the-java-virtual-machine-error-running-starteam-2008-rele