title: Use pdfbox with Notepad ++ and windows cmd?
body: <p>I don't want to use large programs like Netbeans Eclipse and so on and should only do a small thing with pdfbox (<a href="https://pdfbox.apache.org/" rel="nofollow noreferrer">https://pdfbox.apache.org/</a>) but it is not working. Do I have to use maven etc?</p>
  <p>I have downloaded <code>pdfbox-2.0.20.jar</code> and <code>pdfbox-app-2.0.20.jar</code></p>
  <p>Added PATH to environment variable in Windows.</p>
  <p>Created this (Document_Creation.java) in Notepad++</p>
  <pre><code>import java.io.IOException; 
  import org.apache.pdfbox.pdmodel.PDDocument;
    
  public class Document_Creation {
      
     public static void main (String args[]) throws IOException {
         
        //Creating PDF document object 
        PDDocument document = new PDDocument();    
         
        //Saving the document
        document.save(&quot;C:/folder/my_doc.pdf&quot;);
        System.out.println(&quot;PDF created&quot;);  
      
        //Closing the document  
        document.close();
  
     }  
  }
  </code></pre>
  <p>Open Windows CDM and type: <code>javac Document_Creation.java</code></p>
  <p>But get this error</p>
  <pre><code>Document_Creation.java:2: error: package org.apache.pdfbox.pdmodel does not exist
  import org.apache.pdfbox.pdmodel.PDDocument;
                                  ^
  Document_Creation.java:9: error: cannot find symbol
        PDDocument document = new PDDocument();
        ^
    symbol:   class PDDocument
    location: class Document_Creation
  Document_Creation.java:9: error: cannot find symbol
        PDDocument document = new PDDocument();
                                  ^
    symbol:   class PDDocument
    location: class Document_Creation
  3 errors
  </code></pre>
  <p>Looks like I can't access pdfbox with <code>import org.apache.pdfbox.pdmodel.PDDocument;</code></p>
  <p>How can I make this code work with latest java (working, tested with println without pdfbox), Notepad++ and Windows CMD?</p>