The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Could not find or load main class .awt.headless=true

Davit | Last updated: Jul 19, 2021 08:18AM UTC

Hi, when trying to run burp in headless mode I get the following error: Error: Could not find or load main class .awt.headless=true Caused by: java.lang.ClassNotFoundException: /awt/headless=true

Uthman, PortSwigger Agent | Last updated: Jul 19, 2021 11:23AM UTC

Are you adding -Djava.awt.headless=true to your command? (https://portswigger.net/burp/documentation/desktop/getting-started/launching/command-line) Which version of Java are you using? I have tested this command and it works as expected: java -Djava.awt.headless=true -jar burpsuite_pro_v2021.6.2.jar

Davit | Last updated: Jul 19, 2021 01:48PM UTC

Yes I am adding -Djava.awt.headless=true, the command looks something like java -jar -Djava.awt.headless=true -Xmx4g .\burpsuite_pro.jar Also tested "java -Djava.awt.headless=true -jar burpsuite_pro.jar" which throws the same error Java version is 16.0.1

Uthman, PortSwigger Agent | Last updated: Jul 19, 2021 01:53PM UTC

The Java version could be the issue since we have not tested Java 16 support yet. Have you tried using Java 15?

Davit | Last updated: Jul 19, 2021 05:08PM UTC

It ran perfectly on CMD, turned out the issue was related to powershell ????‍♀️, thanks a lot

Davit | Last updated: Jul 19, 2021 05:09PM UTC

wanted to post shrug emoji, it was converted :D

Uthman, PortSwigger Agent | Last updated: Jul 20, 2021 08:49AM UTC

Thanks for the update! :)

creigatmi | Last updated: Aug 30, 2021 07:41AM UTC