Tuesday, September 6, 2011

Java in TextPad

You can write and edit Java source code using a simple text editor such as TextPad. This is the editor I personally prefer to use.

You can edit the syntax file (java.syn) directly since it is itself a simple flat text file. You can also play around with the colors and adjust them to your own satisfaction (keywords, strings, comments, brackets, etc).

TextPad has support built-in for you to compile your source code and run the class files right from within TextPad.

Here are the three simple steps to integrating Java compilation and execution.
  1. From the Configure menu, choose Preferences.
    (The Preferences dialog box is displayed.)
  2. Select Tools. (last option in the left-hand tree pane)
  3. Click Add, and choose Java SDK Commands
This action adds commands to compile and run Java applications and applets and is only available if javac.exe is in your PATH environment variable, and is not already on the Tools menu.