| using Textpad, configured
for Java
(Configure -> Preferences -> Tools -> Add JDK commands) |
without Textpad | |
| open text editor | Start -> Class -> Textpad | e.g. Start -> Programs ->
Accessories -> Notepad
(or Wordpad but make sure not to save formatting commands) |
| type in program | .. | .. |
| save program | File -> Save
Files can also be saved automatically before compilation. (Configure -> Preferences -> Tools -> Compile Java -> Save all documents first) |
File -> Save (for Notepad) |
| compile program | Tools -> Compile Java
To correct compiler errors: move cursor to line with error and press enter. |
Open DOS window
Start -> Programs -> MS-DOS Prompt cd [..] javac [].java |
| run program | Tools -> Run Java Application
Tools -> Run Java Applet |
In DOS window
applications: java [..].class applets: create html-file, then: appletviewer [..].html |