A walk through tunnel - Compiling tunnel

From Fs_wiki

Jump to: navigation, search


To compile Tunnel you need the Java Development Kit (JDK). If you have downloaded only the runtime (JRE), you will not be able to compile the program.

Go to the "tunnelx" directory, just as when you wanted to run Tunnel. From there type the command,

 javac src/*.java


This will compile all the java source files in the "src" subdirectory. The output of the compilation is a set of java class files, ie, files with extension "class", in the same directory. You need to move them in the subdirectory "Tunnel" because the classes belong to the package named "Tunnel" and Java searches for classes hierarchically in directories according to the package naming scheme.


Prev Up Next