title: Java packaging on Cloud9 IDE
body: <p>When programming in Java on Cloud9, how do you import a user class?</p>
  
  <p>Under my workspace "java_projects", I have two directories(packages) "~/workspace/project1" and "~/workspace/project2"</p>
  
  <p>There is a test1.java file in project1 that imports a class from project2:</p>
  
  <pre><code>package project1;
  import project2.test2;
  
  public class test1
      {
          public static void main(String[] args)
              {
                  System.out.println("Hello World");
              }
      }
  </code></pre>
  
  <p>But the compiler doesn't recognize the project2 package("package project2 does not exist") and will not compile.</p>
  
  <p>I've looked up and tried fixing the classpath to resolve this issue but with no luck.
  I feel like there is a fundamental reason for why this won't work but I have no idea. Apologies in advance for being a noob ^^;; eclipse simplified all this packaging business but I guess I'll have to learn the details to use java on Cloud9. Any suggestions/references to learning more about this is greatly appreciated~</p>