title: Import a class from another project or make a class in current project (NetBeans)
body: <p>Yesterday I have started learning Java tutorials from Oracle site and I have a problem with the first program (Bicycle :). I have made project with only one class (<code>class Bicycle</code>), then open new project and wrote the class that creates two <code>Bicycle</code> objects and invokes their methods. When I try to build project receive error message:</p>
  
  <p><code>"error: cannot find symbol
          Bicycle bike1=new Bicycle();
    symbol:   class Bicycle
    location: class BicycleDemo"</code>.</p>
  
  <p>I tried right click on Libraries and add Project - didn't work, tried to create new class in current project (with same content) - didn't work. What to do? </p>
  
  <pre><code>package bicycledemo;
  /**
  *
  * App witch simulates using of Bicyle class.
  */
  public class BicycleDemo {
  import Bicycle;  
  public static void main(String[] args) {
      Bicycle bike1=new Bicycle();
      Bicycle bike2=new Bicycle();
  
      bike1.changeCadence(34);
      bike1.increaseSpeed(3);
      bike1.changeGear(2);
      bike1.printStates();
  
      bike2.changeCadence(3);
      bike2.increseSpeed(12);
      bike2.printStates();
  }
  }
  </code></pre>
  
  <p>And I also have whole C:\Users\nojo\Documents\NetBeansProjects\Bicycle file in Libraries of project BicycleDemo.
  Code of Bicycle.java:</p>
  
  <pre><code>public class Bicycle {
  int cadence=0;
  int speed=0;
  int gear=1;
  
  void changeCadence(int newValue){
  cadence=newValue;
  }
  void increaseSpeed(int increase){
  speed=speed+increase;
  }
  void applyBreaks(int decrease){
  speed=speed-decrease;
  }
  void changeGear(int gearNumber){
  gear=gearNumber;
  }
  void printStates(){
  System.out.println("cadence:" + cadence + "speed:" + speed +
          "gear:" + gear);
  }
  }
  </code></pre>