title: How to import a class from a package in a different folder?
body: <p>I am new to java. This is a basic question about packages. I have a small java project named "stacklist.java" in Netbeans IDE. It's package name is stacklist. And it has 4 different classes. One of them is ListNode.</p>
  
  <p>Now i need ListNode object in other project "queuelist.java".</p>
  
  <p>directory structure is StackList->src->stacklist and QueueList->src->queuelist. Both StackList and QueueList are at the same level.</p>
  
  <p>And added the folder(StackList\src) in Libraries of queuelist.java project. I did "import stacklist.*;"</p>
  
  <p>When i run "clean and build project", i am getting this: "error: package stacklist does not exist
  import stacklist.*;"</p>
  
  <p>Please suggest me.</p>