• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

obfuscation

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
What should be in input jar and output jar...how to set -keep class name.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you asking about some specific tool or library? If so, which one?

Also, what does obfuscation have to do with performance (which is what this forum is about)?
 
kalaiyarasan sivaprakasam
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Ulf Dittmer ,
i have tried obfuscation in proguard,its working fine.but it changed class name and method name itself i do not want it so,
because i am using big product,so i have to use and i have to call those method name and class name in some other class.


For example,

import java.io.PrintStream;

class Game
{

public static void main(String args[])
{
Runtime runtime = Runtime.getRuntime();
Object obj = null;
try
{
int i;
for(i = 0; i < 5; i++)
{
Process process = runtime.exec("freecell");
process.waitFor();
}

i++;
}
catch(Exception exception)
{
System.out.println("Unable to open Game");
}
}

this is my source,
it should not change the class name and method name after obfuscating,
for that what keep option i need to select.

thank you very much your ans.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Proguard has an extensive online manual that explains all the options. Which ones have you tried? How did (or didn't) they work?
 
kalaiyarasan sivaprakasam
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i tried with proguard4.4 .its working fine,also it has changed all class name and method name,so i cant integrate those with my product.that is why i am asking to not change the class and method name after obfuscation ,which keep option i need to select.

thanks.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:Proguard has an extensive online manual that explains all the options. Which ones have you tried? How did (or didn't) they work?

 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also

Ulf Dittmer wrote:Also, what does obfuscation have to do with performance (which is what this forum is about)?

 
I'm still in control here. LOOK at this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic