June 2018
Beginner
722 pages
18h 47m
English
There are two ways to set it:
We will describe how to use the -classpath option first. It has the same format in the javac and java commands:
-classpath dir1;dir2\*;dir3\alibrary.jar (for Windows)javac -classpath dir1:dir2/*:dir3/alibrary.jar (for Lunix)
In the preceding example, dir1, dir2, and dir3 are folders that contain the files of the application and the third-party .jar files the application depends on. Each can include a path to the directory, too. The path can be absolute or relative to the current location where you run this command.
If a folder does not contain .jar files (it has only .class files, for example), it is enough to have ...
Read now
Unlock full access