title: importing into project from java source file (Trying to set up imports into class file for compiling(java.util.Scanner. and java.Lang.Thread))
body: <p>im trying to get my calculator to work on CMD but how do i Get it to work on CMD but i already have put imports and the use within the code. so how do i get it to work on cmd.</p>
  
  <p>heres the code </p>
  
  <pre><code>import java.util.Scanner;
  import java.lang.Thread;
  
  public class Calculator {
  
      int B1;
  int C1;
  int D1;
  
  @SuppressWarnings("resource")
  public static void main(String[] args) throws Exception {
      System.out.println("How May i asist you with your calculation.");
      Thread.sleep(1000);
      System.out.println("So what opperation do you want to use. ");
      Scanner A1 = new Scanner(System.in);
      String in = A1.nextLine();
          if (in.equals("+")){
              System.out.println("Enter the first Number. ");
              Scanner Z = new Scanner(System.in);
              int B1 = Z.nextInt();
              System.out.println("Enter The last Number. ");
              Scanner Y = new Scanner(System.in);
              int C1 = Y.nextInt();
              int D1 = B1 + C1;
              System.out.println(" you answer is " + D1 + ".");}
          else if (in.equals("-")){
              System.out.println("Enter the first Number. ");
              Scanner Z = new Scanner(System.in);
              int B1 = Z.nextInt();
              System.out.println("Enter The last Number. ");
              Scanner Y = new Scanner(System.in);
              int C1 = Y.nextInt();
              int D1 = B1 - C1;
              System.out.println(" you answer is " + D1 + ".");}
          else if (in.equals("*")){
              System.out.println("Enter the first Number. ");
              Scanner Z = new Scanner(System.in);
              int B1 = Z.nextInt();
              System.out.println("Enter The last Number. ");
              Scanner Y = new Scanner(System.in);
              int C1 = Y.nextInt();
              int D1 = B1 * C1;
              System.out.println(" you answer is " + D1 + ".");}
          else if (in.equals("/")){
              System.out.println("Enter the first Number. ");
              Scanner Z = new Scanner(System.in);
              int B1 = Z.nextInt();
              System.out.println("Enter The last Number. ");
              Scanner Y = new Scanner(System.in);
              int C1 = Y.nextInt();
              int D1 = B1 / C1;
              System.out.println("You answer is " + D1 + ".");}
          else
              System.out.print("That's Not a valid operation.");
  
          }
      {
  }
  </code></pre>
  
  <p>}</p>
  
  <p>heres the error on cmd</p>
  
  <p>Exception in thread "main" java.lang.NoClassDefFoundError: workspace\Calculator\
  bin\Calculator (wrong name: Calculator)
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.access$100(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)</p>