Could not create the Java Virtual Machine Error

4.2k views Asked by At

I'm trying to run this command on my linux machine:

java -noverify -Xbootclasspath/p:burp-loader-keygen-2020_2.jar -jar burpsuite_pro_v2020.2.jar

and i keep getting these errors:

-Xbootclasspath/p is no longer a supported option.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I tried to install again these versions:

sudo apt update
sudo apt install default-jdk -y
sudo apt install default-jre -y

But i kept getting the same error over and over, any solution or help or suggestion?

1

There are 1 answers

0
Stephen C On BEST ANSWER

You are running the Burp Suite JAR file the wrong way.

  • If this is an older version of Burp Suite, you must use Java 8 which still supports the -Xbootclasspath option. Note it is not sufficient to simply install Java 8. You need to make sure that java -version says it is Java 8, or use the full path to the Java 8 version of the java command.

    This won't work with Burp Suite 2020.4 or later.

  • Conversely, if you are using Burp Suite 2020.4 or later, then you need to use Java 9 or later, and you need to run like this:

    java -jar -Xmx4g /path/to/burp.jar
    

Source: