Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java ProGuard can't find referenced class

Tags:

java

proguard

I'm trying to obfuscate my java code with ProGuard (as suggested on stackoverflow).

However I'm getting "cant find referenced class" errors

error

Below is my configuration, I didn't change anything from default really. Just added input and output jars.

https://i.gyazo.com/cc081c27450468b9dee89c069fd535dc.png

I've searched on the internet for solutions for a while and many suggested -ignorewarnings or -keepclass ..... But none of them seem to work.

Hopefully someone can help me :) I prefer using the GUI if possible.

like image 794
SJ19 Avatar asked Mar 05 '26 20:03

SJ19


1 Answers

The Java8 runtime references some additional classes that are not present in rt.jar but in plugin.jar. It is safe to ignore these warnings, so you can specify the following option in your configuration:

-dontwarn netscape.javascript.*
like image 90
T. Neidhart Avatar answered Mar 07 '26 09:03

T. Neidhart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!