title: Java Jar generated by Ant script does not support user input
body: <p>Jar generated by Ant script does not support user input
  class file is </p>
  
  <pre><code>import java.io.BufferedReader;
  import java.io.IOException;
  import java.io.InputStreamReader;
  
  public class LogClass {
  
  public static void main(String argsp[]) throws IOException {
      BufferedReader bufferedReader = new BufferedReader(
              new InputStreamReader(System.in));
      System.out.println(bufferedReader.readLine());
    }
  
  }
  </code></pre>
  
  <p>build.xml is </p>
  
  <pre><code>&lt;project name="HelloWorld" basedir="." default="main"&gt;
  
  &lt;property name="src.dir"     value="src"/&gt;
  
  &lt;property name="build.dir"   value="build"/&gt;
  &lt;property name="classes.dir" value="${build.dir}/classes"/&gt;
  &lt;property name="jar.dir"     value="${build.dir}/jar"/&gt;
  
  &lt;property name="main-class"  value="LogClass"/&gt;
  
  
  
  &lt;target name="clean"&gt;
      &lt;delete dir="${build.dir}"/&gt;
  &lt;/target&gt;
  
  &lt;target name="compile"&gt;
      &lt;mkdir dir="${classes.dir}"/&gt;
      &lt;javac srcdir="${src.dir}" destdir="${classes.dir}"/&gt;
  &lt;/target&gt;
  
  &lt;target name="jar" depends="compile"&gt;
      &lt;mkdir dir="${jar.dir}"/&gt;
      &lt;jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}"&gt;
          &lt;manifest&gt;
              &lt;attribute name="Main-Class" value="${main-class}"/&gt;
          &lt;/manifest&gt;
      &lt;/jar&gt;
  &lt;/target&gt;
  
  &lt;target name="run" depends="jar"&gt;
      &lt;java jar="${jar.dir}/${ant.project.name}.jar" fork="true"/&gt;
  &lt;/target&gt;
  
  &lt;target name="clean-build" depends="clean,jar"/&gt;
  
  &lt;target name="main" depends="clean,run"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>I am using eclipse luna latest version with JDK 1.8.
  after running build file jar created successfully but on running jar does not support user input when running on eclipse.
  Command prompt support user input but it does not support externat liberary.
  Please help.
  my project need both user input and external liberary.</p>