title: Trying to use the Netbeans ProgressBar to show long running tasks, having problems with dependancies and libraries
body: <p>I have an application built on top of NetBeans. We have some long running jobs that I'd like to keep running in the background, but allow the user to see progress on the bar on the lower right. </p>
  
  <p>E.G:</p>
  
  <p><img src="https://i.stack.imgur.com/cOKCT.png" alt="Opening Projects Progress Bar"></p>
  
  <p>I can't seem to access it from my code.</p>
  
  <p>Initially I didn't have this library</p>
  
  <p><code>org.netbeans.api.progress.ProgressHandle;</code></p>
  
  <p><code>org.netbeans.api.progress.ProgressHandleFactory;</code></p>
  
  <p>I had to go out and hunt down the JAR file. That doesn't make whole lot of sense to me, I figure it should be available. </p>
  
  <p>This creates an error when I try to call the ProgressHandle into effect, I get this error 
  <code>java.lang.ClassNotFoundException: org.openide.awt.StatusLineElementProvider …</code></p>
  
  <p>Followed by a stack trace. Obviously I don't have all the packages necessary to operate this.</p>
  
  <p>What the big question is then, what am I missing as far as accessing these NetBeans libraries correctly?</p>
  
  <p>Thanks,</p>
  
  <p>Here's the code when I'm trying to call the progressbar into action</p>
  
  <p>`</p>
  
  <pre><code>ProgressHandle progr;
   if (thread == null) {
              thread = new Thread() {
                  @Override
                  public void run() {
            progr.start();
            progr.progress("Sending backup to remote server.");
  … //Some code that sends a backup
   progr.finish();
  </code></pre>
  
  <p>`</p>
  
  <p>I'll be rewriting this question a few times, until I think it's clear, I'm open to input</p>