Burp Suite User Forum

Create new post

parse JSON 【ClassNotFoundException】

Jeason | Last updated: May 04, 2021 07:43AM UTC

Hi: I build a Extension and import a third-library named "fastjson.jar". but when i export this extention as a jar file and load it into Burpsuite , it always rase 【ClassNotFoundException】when parse JSON. I dont know why it happens,please tell me why. Thank you. You can download the Extension file here: https://github.com/bailsong/BurpDecoder/releases/tag/v1.0.1

Hannah, PortSwigger Agent | Last updated: May 06, 2021 10:06AM UTC

Hi

Have you tried compiling your extension using a build tool like Maven or Gradle, and including your library as a dependency?

By using a build tool, you can include the Extender API artifact, so you do not need to include all of the Extender API interface files. If you have a look at some of our BApp Store extensions (on our GitHub), you can see how other authors have implemented this.

Alternatively, have you tried including the fastjson library in your Java environment in Burp under "Extender > Options > Java environment"?

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.