Adding a JAR to Your Classpath

Although Appendix A, "Installing the SDK and Getting Started," describes installation of the SDK and touches on ensuring that the JAR files are in your System CLASSPATH, you should understand how to add other JAR files to your CLASSPATH. These other JAR files could be your own JAR files for you application or a third-party vendor's JAR files. The good news is that it's no different than adding the JAR files for the SDK. You can specify them by appending them to your system CLASSPATH after the JAR files from the SDK. When adding JAR files, however, keep in mind that if you have a class that exists in two different JAR files, or even one JAR file and then a directory that contains Java class files, the first class ...

Get Special Edition Using Java 2 Standard Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.