Questions tagged [yguard]
41 questions
19
votes
3 answers
Java obfuscation - ProGuard/yGuard/other?
This is along similar lines as these recent questions:
Best Java Obfuscation Application For Size Reduction
Creating non-reverse-engineerable Java programs
However, one ends up recommending yGuard and the other ProGuard but neither mention both. I…

roryf
- 29,592
- 16
- 81
- 103
5
votes
1 answer
Using yGuard to obfuscate library in Eclipse
I'm currently developing a Java library of my own to be used in other apps in my office, and I'm exploring ways of obfuscating the library itself.
I'm working with Eclipse Indigo, and am using yGuard v2.3.0.1.
Firstly, my Java code:
package…

Earthling
- 283
- 5
- 17
5
votes
1 answer
Obfuscating Java in Gradle using yGuard ~ How to exclude enum?
My project obfuscates Java code in Gradle using yGuard.
I have a package of classes and enums that are being serialized with Gson.
Each enum value has a @SerializedName annotation, like:
package com.package.whatever;
import…

Pepit
- 53
- 3
4
votes
1 answer
How to Obfuscate my web application project.war using Ant & YGuard?
We developed a web application (struts 1.x/Hibernate based) for which I built a
war file using ANT build script. Now, my company wants me to obfuscate the .classes files
before generating a war & distributing it to the client. When I googled, I…

Manoj
- 151
- 3
- 6
3
votes
1 answer
How to manage Spring Getters and Setters Obfuscation in yguard
Hi i use yguard ant task to obfuscate my project, it goes well with renaming my java classes, and corresponding bean in spring xml files, but since the getter and setter methods are also renamed in java, the property names in spring injection does…

Madan
- 31
- 1
- 4
3
votes
1 answer
Use maven + yguard
Has anybody used maven and yguard for obfuscating jar files?How to do so?

ram
- 31
- 1
- 2
2
votes
1 answer
IllegalStateException: Unable to open nested entry 'BOOT-INF/lib/xxx.jar'. using yguard
I am working to solve spring boot jar obfuscation with yguard with gradle scripting. But not bale to succeded till now after long hours.
Can someone point me with any good documentation or examples
obfuscation works with plain jar , but after…

Slok
- 576
- 1
- 12
- 27
2
votes
0 answers
Yguard and Android Obfuscation
I want to know how to use yguard to obfuscate and android library project. I tried but each time blank jar is generated.
I also tried ProGuard but it does not seems to be obfuscating the string in class files.
Here is my build.xml

MSN
- 566
- 7
- 13
1
vote
1 answer
How to include obfuscated jar file into a war file
In my web application, to obfuscate the source code, i used yGuard and got an obfuscated jar file. Now i placed this jar file into the WEB-INF/lib folder (as my jsp files have reference to the java files) and packaged the war file using below ant…
user1156290
1
vote
1 answer
yGuard does not work in the simplest form possible (Hello World)
Here is my Ant snippet:

ePortfel
- 119
- 6
1
vote
0 answers
yGuard NoSuchMappingException all external dependencies
I can't get yGuard to work with any external dependencies. All cases i'm getting error like NoSuchMappingException: No mapping found for: Class com.fasterxml.jackson.databind.ObjectMapper.
My code:
Main class:
public class Main {
public static…

TryKote
- 31
- 2
1
vote
0 answers
Unable to access private fields and methods from inner class after YGuard obfuscation
I am experiencing a strange behavior with YGuard obfuscation in Java 11. I have a class which comprises some private fields and methods and inner classes as below.
public class TestClass {
private int age;
public void…

Kather
- 95
- 8
1
vote
0 answers
YGuard Obfuscate failing with message : yGuard detected a duplicate class definition for javax.xml.bind.ModuleUtil
My pom has
com.sun.xml.bind
jaxb-core
2.3.0.1
javax.xml.bind
…

Nagendra Singh
- 577
- 1
- 7
- 24
1
vote
1 answer
Obfuscating Java in Gradle using yGuard ~ How to exclude methods?
I want to obfuscate Java code in Gradle using yGuard. So far, I have managed to get the obfuscation working using:
dependencies {
compile 'com.yworks:yguard:2.9.2'
}
task yGuardObfuscate {
group 'yGuard'
description 'Obfuscates existing…

Kira Resari
- 1,718
- 4
- 19
- 50
1
vote
0 answers
Obfuscating java class files with yGuard fails to resolve few external Jar files
I have a Dynamic Web Project in Eclipse. After building the java source code, I wanted to obfuscate the class files using yGuard. The external Jar files have been put in the lib folder in the Tomcat directory and the build path is configured…

Whyashh
- 93
- 9