Creating and Using an External Library - Exercise

Contact Us or call 1-877-932-8228
Creating and Using an External Library - Exercise

Creating and Using an External Library

Duration: 5 to 10 minutes.
  1. Run the command shown above to create utilities.jar.
  2. Move utilities.jar to the ClassFiles directory in your filesystem.
  3. If you remove the util directory from Payroll-Control02, you will not be able to compile or run Payroll as we have been doing.
  4. But, you should be able to compile and run by specifiying a classpath option as shown in the commands above.
  5. You can also temporarily modify the classpath for the duration of your command prompt window as follows (note that you may need to modify the line below to match your setup):
    set CLASSPATH=%CLASSPATH%;c:\Java102\ClassFiles\utilities.jar
Next