When I\'m in Eclipse my project compiles with no errors, however when I try to compile with javac
it says I\'m missing some packages...
I copied my comp
-classpath lib/
will cause javac
to look for a tree of class files in lib
. If you have JAR archives there, you have to use -classpath lib/*.jar
- and probably use whatever escaping mechanism your CLI has on the * to make sure it reaches javac
rather than being expanded by the CLI
See the javac command reference (windows).