Include the current directory in the compilation path
javac -classpath ../equinox.jar:. Package2/Class2.java
Explanation: because the -classpath
argument is used the current directory is no longer automatically used in the classpath so needs to be added explicitly.
See the Java programming language compiler for a full description of all command line options