Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!

kübra utman

Greenhorn
+ Follow
since May 14, 2020
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kübra utman

Tim Moores wrote:There's nothing to prepare. You already have your classes in a jar file, and a ProGuard cnfig file to obfuscate it. What stops you from just doing it?


The project fails when I include the beans in the jar.
6 days ago
I want to run my bean as jar in my jsf 2 project but i get the error.
Error:

The reason I added the beans as a jar is the obfuscate process. But he also failed without obfuscate.
1 week ago

Tim Moores wrote:No, obfuscate just the jar file. You mentioned "addiction jar files" - if that is the jar file that contains all your classes, that's the one to obfuscate. You just need to change the "injars" and "outjars" parameters accordingly.


I have only java libraries in my WEB-INF lib file, I don't have source code. it contains dependencies. For example guava.jar or httpclient-4.5.8.jar. How to prepare the jar file I will give as input
1 week ago

Dave Tolls wrote:Exactly as Tim said, you obfuscate the jar files.
Then create the war file.


Should I take my web project as a jar and obfuscate?
1 week ago
I don't know what to do about it. I try to do what I am told, but there is not much information. My addiction jar files used in my project are in the web-inf lib folder. What should I give as input to proguard?
1 week ago

Tim Moores wrote:


-injars  C:/Users/utman/Desktop/givenForWar/WB.war
-outjars C:/Users/utman/Desktop/givenForWar/ObWB.war


There's the problem right there. As the parameter names imply, ProGuard works with jar files, not war files. It should only be used with the jar file that contains your code, and not touch anything else.


How will the classes in the project be obfuscate? Project web project but I have to obfuscate the war file
1 week ago
My config.pro file
-injars  C:/Users/utman/Desktop/givenForWar/WB.war
-outjars C:/Users/utman/Desktop/givenForWar/ObWB.war
-libraryjars C:/Program Files/Java/jdk1.8.0_221/jre/lib/rt.jar
-libraryjars C:/Users/utman/workspaceProje/devObfuscated/WebContent/WEB-INF/lib/log4j-1.2.13.jar
-ignorewarnings
-dontoptimize
-dontshrink
-keep class * implements java.sql.Driver
1 week ago

Tim Moores wrote:Post the ProGuard configuration. It seems that it considers "WEB-INF/classes/com/mycompany/wab/db/MyList" to be the class name rather than "com/mycompany/wab/db/MyList", so one of the settings (most likely a classpath) seems incorrect.



I'm new to programming, I don't understand how to do this. When I open the war file with winrar, I can only see my classes file. I don't have a classes folder under web-inf in the project.
1 week ago
Hi I'm a junior developer, I'm new to Proguard. I am trying to obfuscate since I will use my war file in my standalone web project. I am obfuscate with the proguard task I added the war file to in build.xml. however, the project is receiving an error. these are my interface and database classes and model classes. war file can be obfuscate written. But there are a lot of sources that can not be written.
While looking for the error I received, it redirects to the proguard site and I don't understand the article there. Please guide me.


[proguard] Warning: class [WEB-INF/classes/com/mycompany/wab/db/MyList.class] unexpectedly contains class [com.mycompany.wab.db.MyList]
[proguard] Warning: class [WEB-INF/classes/com/mycompany/wab/db/impl/Derby.class] unexpectedly contains class [com.mycompany.wab.db.impl.Derby]
[proguard] Warning: class [WEB-INF/classes/com/mycompany/wab/db/impl/Oracle.class] unexpectedly contains class [com.mycompany.wab.db.impl.Oracle]
[proguard] Warning: class [WEB-INF/classes/com/mycompany/wab/db/impl/SqlFactory.class] unexpectedly contains class [com.mycompany.wab.db.impl.SqlFactory]
[proguard] Warning: class [WEB-INF/classes/com/mycompany/wab/db/interfaces/IDerby.class] unexpectedly contains class [com.mycompany.wab.db.interfaces.IDerby]
[proguard] Warning: class [WEB-INF/classes/com/mycompany/wab/db/interfaces/IOracle.class] unexpectedly contains class [com.mycompany.wab.db.interfaces.IOracle]
[proguard] Warning: class [WEB-INF/classes/com/mycompany/wab/data/CodeTemplate.class] unexpectedly contains class [com.mycompany.wab.data.CodeTemplate]

[proguard] Warning: there were 895 classes in incorrectly named files.
[proguard]          You should make sure all file names correspond to their class names.
[proguard]          The directory hierarchies must correspond to the package hierarchies.
[proguard]          (http://proguard.sourceforge.net/manual/troubleshooting.html#unexpectedclass)
[proguard]          If you don't mind the mentioned classes not being written out,
[proguard]          you could try your luck using the '-ignorewarnings' option.
2 weeks ago