I am trying to include an apache fop jar file to a java classpath. The Java file has to include some fop stuff like below:
import org.apache.fop.apps.Driver;
import org.apache.fop.apps.Options;
And all files I have is fop.jar and FOPWrapper.java. When I try to compile with the following line: javac -cp ".;*.jar" FOPWrapper.java
I still get compiler errors.
FOPWrapper.java:1: error: package org.apache.fop.apps does not exist
import org.apache.fop.apps.Driver;
^
FOPWrapper.java:2: error: package org.apache.fop.apps does not exist
import org.apache.fop.apps.Options;
How am I then supposed to include the jar file so that it compiles?