Follow these steps:
1) After installing the JDK,download the textpad from the given url: http://www.textpad.com
2) After downloading,run the txpeng450.exe file to install.
3) After installing open Textpad and select Configure, then Preferences, and then select tools but do not open it (you should see a + sign in front of tools).
4) Press Add and select the last entry - Java jdk commands. Textpad will finds Java and set up the tools for you.
For more information,visit the following link:http://www.roseindia.net/java/java-tips/background/30java_tools/50textpad.shtml