This explanation will save you a lot of hacking time and headache.The following steps are for Windows95 :

 

  1. Compile the package :
  2. javac -d C:\classes C:\Sources\com\bparanj\util\*.java

  3. Compile the application which uses the package :
  4. javac -classpath C:\classes; Application.java

  5. Run the application :
  6. java -classpath C:\classes; Application

  7. If the application is a package, then step 2 becomes :

javac -d . -classpath C:\classes; Application.java

and the step 3 becomes :

java -classpath C:\classes; c03.Application

1