The progrem "cef" is meant to solve a problem with compiling a program in
a DOS window under Windows 95 or 98:
If the compilation produces more than
a few error messages, the first messages will scroll off the screen.
and in Windows NT, there is a way to send the error messages to a file, which
you can then view at your leisure.
The cef program does something similar.
"cef" stands for "Compile and send Errors to a File".
(Of course, this
program will also work under UNIX or Windows NT, though it isn't necessary
You will have to start by compiling cef itself, using the command
(There will be a warning about using a deprecated method,
but this is not an error.)
The compiler will produce a class file,
In order to use cef, you should copy the class file, cef.class,
into the directory where you want to use it.
That is, copy it into the
directory that contains the java source code file that you want to compile.
Then, to use cef, run it using the "java" command.
You can give the name of
the Java source code file, or files, as command line parameters.
if you want to compile a file named "MyFile.java", say:
java cef MyFile.java
Alternatively, you can just say
and you will be prompted to enter the name of the file.
The file will be compiled as usual, as if you had said "javac MyFile.java".
However, error messages will be put in a file named "errors.txt".
view this file, for example, by giving the command:
If the Java file does not contain any errors, then a message will be output
to the screen saying "Compilation finished with
In this case,
the file errors.txt will just contain the message "No errors".
Please note that if there is an existing file named errors.txt, it will
It is possible to specify a different output file for the error messages.
To do this, use the option "-f <filename>" on the "java cef" command.
For example, to send the error messages to a file named "messages.dat":