j_sse
j_sse
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/15/2024 in #java-help
Need help obfuscating project
proguard rules:
-dontoptimize
-dontshrink

-obfuscationdictionary obfuscation_dictionary.txt
-classobfuscationdictionary obfuscation_dictionary.txt
-packageobfuscationdictionary obfuscation_dictionary.txt

-keep class !jesse.** { *; }
-keep class jesse.scriptmod.ScriptMod { *; }
-adaptresourcefilecontents mixins.scriptmod.json

-ignorewarnings
-dontoptimize
-dontshrink

-obfuscationdictionary obfuscation_dictionary.txt
-classobfuscationdictionary obfuscation_dictionary.txt
-packageobfuscationdictionary obfuscation_dictionary.txt

-keep class !jesse.** { *; }
-keep class jesse.scriptmod.ScriptMod { *; }
-adaptresourcefilecontents mixins.scriptmod.json

-ignorewarnings
5 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
yeah it cant find JFrame, I have no idea why
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
I added the java.base.jmod file to the libraryjars, now am getting
^^^^^^ Can't find common super class of [InstallerFrame] (with 1 known super classes: InstallerFrame and 1 unknown classes: javax.swing.JFrame) and [java.lang.Exception] (with 3 known super classes: java.lang.Object, java.lang.Throwable, java.lang.Exception)
^^^^^^ Can't find common super class of [InstallerFrame] (with 1 known super classes: InstallerFrame and 1 unknown classes: javax.swing.JFrame) and [java.lang.Exception] (with 3 known super classes: java.lang.Object, java.lang.Throwable, java.lang.Exception)
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
this is really weird to me, im keeping everything, so it should include that right? My current proguard rules file:
-dontoptimize
-dontshrink

-obfuscationdictionary obfuscation_dictionary.txt
-classobfuscationdictionary obfuscation_dictionary.txt
-packageobfuscationdictionary obfuscation_dictionary.txt

-keep class !jesse.** { *; }
-keep class jesse.scriptmod.ScriptMod { *; }
-adaptresourcefilecontents mixins.scriptmod.json

-dontwarn
-dontoptimize
-dontshrink

-obfuscationdictionary obfuscation_dictionary.txt
-classobfuscationdictionary obfuscation_dictionary.txt
-packageobfuscationdictionary obfuscation_dictionary.txt

-keep class !jesse.** { *; }
-keep class jesse.scriptmod.ScriptMod { *; }
-adaptresourcefilecontents mixins.scriptmod.json

-dontwarn
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
this might be the problem im facing now
^^^^^^^^^ Can't find common super class of [info.bliki.wiki.tags.util.TagStack] (with 1 known super classes: info.bliki.wiki.tags.util.TagStack and 1 unknown classes: java.util.ArrayList) and [info.bliki.wiki.filter.WPList$InternalList] (with 1 known super classes: info.bliki.wiki.filter.WPList$InternalList and 1 unknown classes: java.util.ArrayList)
^^^^^^^^^ Can't find common super class of [info.bliki.wiki.tags.util.TagStack] (with 1 known super classes: info.bliki.wiki.tags.util.TagStack and 1 unknown classes: java.util.ArrayList) and [info.bliki.wiki.filter.WPList$InternalList] (with 1 known super classes: info.bliki.wiki.filter.WPList$InternalList and 1 unknown classes: java.util.ArrayList)
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
oh my bad I was separating with : and im on Windows so should have been ;
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
these all do exist
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
I can try to clear the cache
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
doesnt seem to be
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
are you sure giving it the library jars will have it be able to build?
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
I feel like this is a lot of trouble for something I dont even know will work
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
Im getting ........ at proguard.InputReader.readInput(InputReader.java:282) ~[proguard-base-7.5.0.jar:7.5.0] at proguard.InputReader.readInput(InputReader.java:229) ~[proguard-base-7.5.0.jar:7.5.0] at proguard.InputReader.readInput(InputReader.java:206) ~[proguard-base-7.5.0.jar:7.5.0] at proguard.InputReader.execute(InputReader.java:157) ~[proguard-base-7.5.0.jar:7.5.0] at proguard.pass.PassRunner.run(PassRunner.java:24) ~[proguard-base-7.5.0.jar:7.5.0] at proguard.ProGuard.readInput(ProGuard.java:330) ~[proguard-base-7.5.0.jar:7.5.0] at proguard.ProGuard.execute(ProGuard.java:123) ~[proguard-base-7.5.0.jar:7.5.0] at proguard.ProGuard.main(ProGuard.java:648) ~[proguard-base-7.5.0.jar:7.5.0] Caused by: java.io.IOException: No such file or directory: .......
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
tasks.register("proguard") {
dependsOn(remapJar)
doLast {
val inputJar = remapJar.archiveFile.get().asFile
val outputJar = File(inputJar.parent, inputJar.nameWithoutExtension + "-obf.jar")

val libraryJars = project.configurations.compileClasspath.get().files.joinToString(separator = ":") { it.absolutePath }

javaexec {
mainClass.set("proguard.ProGuard")
classpath = proguardConfig + files("libs/proguard.jar")
args = listOf(
"-injars", inputJar.absolutePath,
"-outjars", outputJar.absolutePath,
"-printmapping", "$buildDir/libs/proguard-map.txt",
"-libraryjars", libraryJars,
"@proguard-rules.pro",
)
}
}
}
tasks.register("proguard") {
dependsOn(remapJar)
doLast {
val inputJar = remapJar.archiveFile.get().asFile
val outputJar = File(inputJar.parent, inputJar.nameWithoutExtension + "-obf.jar")

val libraryJars = project.configurations.compileClasspath.get().files.joinToString(separator = ":") { it.absolutePath }

javaexec {
mainClass.set("proguard.ProGuard")
classpath = proguardConfig + files("libs/proguard.jar")
args = listOf(
"-injars", inputJar.absolutePath,
"-outjars", outputJar.absolutePath,
"-printmapping", "$buildDir/libs/proguard-map.txt",
"-libraryjars", libraryJars,
"@proguard-rules.pro",
)
}
}
}
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
would my gradle build file help?
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
I have no idea where these are located, not too experienced with java compilation
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
the manual is telling me I could use -dontpreverify
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
It appears you are missing some classes resulting in an incomplete class hierarchy,
please refer to the troubleshooting page in the manual:
https://www.guardsquare.com/en/products/proguard/manual/troubleshooting#superclass

at proguard.ProGuard.execute(ProGuard.java:268) ~[proguard-base-7.5.0.jar:7.5.0]
at proguard.ProGuard.main(ProGuard.java:648) ~[proguard-base-7.5.0.jar:7.5.0]
It appears you are missing some classes resulting in an incomplete class hierarchy,
please refer to the troubleshooting page in the manual:
https://www.guardsquare.com/en/products/proguard/manual/troubleshooting#superclass

at proguard.ProGuard.execute(ProGuard.java:268) ~[proguard-base-7.5.0.jar:7.5.0]
at proguard.ProGuard.main(ProGuard.java:648) ~[proguard-base-7.5.0.jar:7.5.0]
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
146 replies
JCHJava Community | Help. Code. Learn.
Created by j_sse on 11/10/2024 in #java-help
Project obfuscation
its not building when I do this
146 replies