cannot find symbol class PDDocument
我已经将jar文件下载到程序存在的同一文件夹中.如何解决这个编译错误?
package org.apache.pdfBox.pdmodel.PDDocument; import java.io.*; import org.apache.pdfBox.pdmodel.PDDocument; public class pdf { public static void main(String args[]) { } }
编译:
javac -classpath .;yourjar.jar src/your/package/*.java
跑步
java -classpath .;yourjar.jar src/your/package/yourprogrammeclassname