1

I have installed java version 11, after installing when I am checking java -version I am getting below error.

C:\Users\lenovo>java -version

Error occurred during initialization of VM Failure when starting JFR on_vm_start

Please, someone, help on this

enter image description here

user3460330
  • 165
  • 3
  • 11

1 Answers1

0

So let's revive this, because I stumbled on a possible solution: Depending on the Java version you are coming from you might have to check the vm arguments for the flight recorder. Some time in the past they shifted some options from -XX:FlightRecorderOptions to -XX:StartFlightRecording. But usually the jvm will tell you that.

In my case I also had a spelling error in one of the options, which led to your error message without any further explanation so that might have been your problem, too.

Of course this will be of little help to the SO, but maybe it can be a hint for someone else.

Fencer
  • 1,026
  • 11
  • 27