Barry is right. It looks like your system is having trouble locating the Java compiler, javac. This isn't a problem with Textpad, but a problem with your environment setup. To fix this, follow these steps (I'm assuming Windows XP and these steps might be a little different if you're using a different OS):
1. Right-Click "My Computer" and select "Properties"
2. Go to the "Advanced" Tab
3. Click the "Environment Variables" button
4. In the lower panel (named "System Variables"), find the variable named "Path"
5. Highlight the "Path" variable and press "Edit"
6. In the "Edit System Variable" dialog, scroll to the end of the existing
String (DO NOT DELETE WHAT IS ALREADY THERE)
6a. If the current string doesn't end with a semi-colon, add one
7. Type the full path to javac.exe (probably something like
C:\j2sdk1.4.2\bin)
8. Press OK 3 times
9. Spin around in front of your computer twice for luck
10. Try compiling again
That should take care of the problem. Also, I'm moving this
thread to JiG (Beginner).