Skip to content
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

ProGuard #48

Closed
gtamas opened this issue Nov 27, 2018 · 1 comment
Closed

ProGuard #48

gtamas opened this issue Nov 27, 2018 · 1 comment

Comments

@gtamas
Copy link

gtamas commented Nov 27, 2018

Hi

I'm trying to use the cheerpj.pro file I generated using cjGetProguardConfiguration() with ProGuard. It generates thousands of notes about duplicate classes.

I'm also getting one error:

Unexpected error while performing partial evaluation:
  Class       = [eu/europa/esig/dss/DSSASN1Utils]
  Method      = [getAccessLocations(Leu/europa/esig/dss/x509/CertificateToken;Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Ljava/util/List;]
  Exception   = [java.lang.IllegalArgumentException] (Can't find common super class of [org/bouncycastle/asn1/ASN1Sequence] (with 3 known super classes) and [java/lang/Exception] (with 1 known super classes))
Error: Can't find common super class of [org/bouncycastle/asn1/ASN1Sequence] (with 3 known super classes) and [java/lang/Exception] (with 1 known super classes)

I'm trying to run proguard like this:

java -jar ~/path/to/proguard.jar -injars ~/app/app.jar -include /path/to/cheerpj.pro -libraryjars /home/user/.m2/repository -outjars ~/app/out.jar -dontwarn

I know this is not a support forum for ProGuard. I'm just trying to figure out whether I'm doing something wrong here, or the generated .pro config should be enough to run proguard successfully.

I'm also new to proguard. What am I doing wrong?

@alexp-sssup
Copy link
Member

There is nothing obviously wrong in the command you are using, I would recommend to first learn proguard on a smaller example before moving to a complex codebase. I am closing this bug since this has nothing to do with CheerpJ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants