For Java Programmers

Notice how this sets up Java to run the Java compiler named javac.exe
using the file that is currently active in TextPad.
TextPad will open up a DOS command window and run javac automatically
and return to the source code if everything compiles correctly. If
there are errors it
will open up a new text window showing the errors. (You can double click
on the errors to jump back into the source code where the problem is.)
Do the same thing for "Run Java Application" setting up the fields
to match the graphic above.
This will set up TextPad to run the java.exe with the class name of the file
that was compiled.
For example: If
your class is named HelloWorld.java,
Textpad will run the following command in a DOS window: javac
HelloWorld.java
Which creates a file named HelloWorld.class
Run Java Application will run the following command in DOS: java
HelloWorld using the file HelloWorld.class that was created by javac.
Always save a program before compiling and running it.
To compile a program, select Tools/Compile Java from the TextPad menu.
To run a program, select Tools/Run a program.
Be an efficient programmer, use hot keys!
CTL s - saves the program
CTL 1 - compiles the program
If errors, dbl click on the first error to jump to the source
CTL 2 - runs the program (only works on the class that was successfully
compiled.)
When TextPad sees the .java extension it will use this syntax coloring scheme.
Important:
Always surround your file
name with quotes to keep textpad from automatically adding on the .txt extension.
Java programs will not compile
if they are named MyFile.java.txt!

To set your own computer so TextPad does not automatically add a TXT extension:

Peter K. Johnson - South Central College - N Mankato, MN 56001 - peter.johnson@southcentral.edu