“Exception in thread “main” java.lang.NoClassDefFoundError:

1 year ago 82
BOOK THIS SPACE FOR AD
ARTICLE AD

I Found Simple Solution for “NoClassDefFoundError:” when Trying to Embedd payload into another apk | Karthikeyan Nagaraj

This error message indicates that the Java class loader is unable to find the class “StringEscapeUtils” from the Apache Commons Text library.

To fix this error, you need to add the Commons Text library to your Java classpath. Here are the steps:

Download the Common Text Library in Apache

I Downloaded the below file for my Kali

https://dlcdn.apache.org//commons/text/source/commons-text-1.10.0-src.tar.gz

2. Extract the File , copy and paste the file to the below location in Step 3

3. Navigate to /usr/share/Apktool with sudo permission

sudo open /usr/share/apktool

4. Delete the old common-text file and add the new file which we downloaded

Old File

New File

5. Now try to run the Command using msfvenom..

Error is gone… and It’s Working

I hope it will be useful to someone!

Thank you for Reading!!

Happy Hacking ~

Author: Karthikeyan Nagaraj
Read Entire Article