-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to work with 7.x - ClassNotFoundException on ClassVisitor #141
Comments
About the manual command line run: About the Maven execution: If you set info log level, you should see the statement that logs the found Proguard JARs: https://github.com/wvengen/proguard-maven-plugin/blob/master/src/main/java/com/github/wvengen/maven/proguard/ProGuardMojo.java#L986 One thing to try is using the temp file for config: https://github.com/wvengen/proguard-maven-plugin/blob/master/src/main/java/com/github/wvengen/maven/proguard/ProGuardMojo.java#L144 |
About CLI: I was using MinGW, which autotranslates paths from Unix-like format. This works normally, even with the actual jar I am trying to obfuscate, which is expected to be run in "java -cp" fashion exactly like proguard.Proguard class.
However, my primary goal is to make it work with Maven. Run with 2.4.0, no dependencies: If I go to my .m2 repo, I can see those there in both proguard-base and proguard-core there for all versions mentioned here. Run with 2.3.1, no dependencies: Run with 2.2.0, no dependencies:
Logs with -X from 2.4.0 no dependencies:
|
I just tried not specifying any and also not specifying any on 2.4.0.
However if I try with a different version than the default there, it fails with the messages in previous posts above. My current problem is: When I try to run the application obfuscated, I get:
Any hint here? I am excluding the mypackage.MyClass (and 6 other classes with a main method too with same statement): |
@xmariachi I had the same errors you mentioned. But I had |
Hi,
I have been trying a lot of things and had different issues on each case, not being able to perform a single obfuscation.
I have a JDK8 application(compiled against and expected to be run on JDK8), but apparently some of the libraries to obfuscate are from a higher version, up to 15. If I use older net.sf.proguard versions (<7) I get an Unsupported major-minor version problem, which should be fixed by using newer 7.x (e.g. 7.1.1) which already covers this.
So I'm getting the following error:
which I've seen in another issue resolved here, but none of the solutions suggested there helped.
I am trying this with jar-with-dependencies but it also happens when I run it against a single jar.
My relevant POM sections:
However, if I just upgrade my proguard-maven-plugin to latest 2.4.0, then I get this.
What am I missing here?
My java version:
Note: I tried downloading and running the jars (proguard-base, proguard-core) but it also doesn't work:
I downloaded these jars from mvnrepository page.
The text was updated successfully, but these errors were encountered: