Compile Tunnel

From Fs_wiki

Jump to: navigation, search

It's a good idea to know how to compile Tunnel so you can get things fixed quickly. It's also one of the legal requirements of free software that you have a right to the source code whenever you obtain a copy of executable code.

Get a command line up, as we had before when we were getting Java to work, and check you can execute the commands:

> java -version

and

> "C:\Program Files\Java\J2sdk1.5.0\bin\javac.exe"

to make sure everything is working as before. You should be in the directory you called "caving". (Type "dir" to see what's in the current directory, "cd .." to go up a directory, and "cd cabbage" to go down into the directory called "cabbage", if it exists.)

Now go into the "tunnelx" directory by typing:

> cd tunnelx

To compile Tunnel, you need to type:

> "C:\Program Files\Java\J2sdk1.5.0\bin\javac.exe" -d . src\*.java

After a moment, Tunnel will be compiled. The code will have been converted from the human readable form in the "src" directory into the computer runnable form in the "Tunnel" directory.