The source code (which you do not need to know about) is in file Terminal.java.
To install the Terminal class, copy file
C:\j2sdk1.4.2_03\jre\lib\ext (or whatever the
corresponding folder is for your Java installation).
Xemacs is free software available from XEmacs.org.
To install it
C:\Program Files\XEmacs\XEmacs-21.4.13(or the corresponding directory if you have downloaded a later version of XEmacs).
JDE. The mode line should display the line number of the current line in the buffer.
When you compile with
ctrl-x ctrl-m or with
the Compile selection from the
Tools pulldown on the menu bar, the compile command should be
javac *java. If
you see the standard XEmacs default
make -k then you
have not properly installed
If compilation fails because XEmacs can't find javac, the problem is
probably with your PATH environment variable, which must go through
the bin directory for your Java installation
(or the equivalent for your installation).
You can make that happen at the system level or by editing default.el
at the obvious place in the obvious way.
If the compilation fails because class
Terminal can't be
found then you have not properly installed
above. Try to compile
EasyHello.java instead, to test XEmacs.
To run the test program, open a shell buffer in XEmacs, either with
Shell->Shell from the Tools pulldown or with
ctrl-r. Then type
java Hello at the prompt in the
shell buffer. Not that the program prompts you for a line to echo
after it prints the usual greeting.
Test printing from XEmacs. The Print selection from the File pulldown on the menu bar should work.
Some of these environments may come with Java installed, in which case you won't need to get a copy separately.
You will need to find out how to make the Terminal class available in your chosen IDE.