title: How can I get constant variable from a class inside a jar using java
body: <p>I need to constant value from a java class but that class in a jar file. How to get that..</p>
  
  <p>java class:</p>
  
  <pre><code>package com.user;
  public final class Constants {
  private Constants(){}
  public static String NAME="name";
  }
  </code></pre>
  
  <p>This class is present under "test.jar". i need to use this name from another repository. I don't want to use the dependency for this jar. I need to use directly. </p>
  
  <p>How do I get this?</p>