title: Java code obfuscating, get orginal class name
body: <p>I'm developing a application in JAVA that needs to register some class names in the Database at runtime.</p>
  
  <p>The problem is that when we deploy the application it's build with some code obfuscater (I think it is called ProGuard), that renames the class names for securing the .Jar files.</p>
  
  <p>I haven't worked before with a code obfuscater and i believe that the output of the obfuscated class name can differ per package for the same class. So this is a problem for me.</p>
  
  <p>Example obfuscated class name;</p>
  
  <pre><code>//method of retrieving class name:
  objMyClass.getClass(); //output: 'MyPackage.MyClass'
  
  //result building obfuscater enabled:
  objMyClass.getClass(); //obfuscated output: 'X.B'
  </code></pre>
  
  <p>So my question is:</p>
  
  <p>Is there a way to programmatical resolve/translate (without Vulcan powers :) ) the original class name when the code is obfuscated? I have the original (non-obfuscated) .Jar/.Java files, Or is there a different way to identify the original Class Type  of a given object at runtime?</p>
  
  <p>Thanks!</p>
  
  <p>Jelte.</p>