![]() |
Program Generation |
|---|
|
Skeleton Java applications and Java applets can be generated automatically
using tools that come with the nuggets.
|
|
If you have set up your Java environment as described
above, you have access to
many of the nugget tools from the command line. The tool
that I use most often is the
This quickly generates a functioning base point from which to create a program, or experiment with syntax problems. In Windows. Invoke the tool like this:
|
1.22 C:\test>application MyApplication 1.22 C:\test\MyApplication>dir Volume in drive C has no label. Volume Serial Number is 3713-2A7B Directory of C:\test\MyApplication 09/03/99 08:32a |
|
As you can see, it has created the subdirectory By default, the editor that is launched when the x script
is run is |
1.22 C:\test\MyApplication>set JUMPSTARTEDITOR=start wordpad 1.22 C:\test\MyApplication>x |
|
In Linux. Invoke the tool like this:
|
1.17 [ndenete@PCSN709199 test]$ . application MyApplication 1.17 [ndenete@PCSN709199 MyApplication]$ ls -l total 9 -rw-rw-r-- 1 ndenete ndenete 158 Sep 2 17:58 MyApplication.java -rwxr--r-- 1 ndenete ndenete 50 Sep 2 17:58 c -rw-rw-r-- 1 ndenete ndenete 51 Sep 2 17:58 c.bat -rwxr--r-- 1 ndenete ndenete 56 Sep 2 17:58 r -rw-rw-r-- 1 ndenete ndenete 47 Sep 2 17:58 r.bat -rwxr--r-- 1 ndenete ndenete 109 Sep 2 17:58 t -rw-rw-r-- 1 ndenete ndenete 110 Sep 2 17:58 t.bat -rwxr--r-- 1 ndenete ndenete 108 Sep 2 17:58 x -rw-rw-r-- 1 ndenete ndenete 199 Sep 2 17:58 x.bat |
|
The following steps cause |
1.17 [ndenete@PCSN709199 test]$ export JUMPSTARTEDITOR=emacs 1.17 [ndenete@PCSN709199 test]$ x |
|
|
|
With your Java environment setup as described
above, you also have
access to my second most used tool -- the
This quickly generates a functioning base point from which to create a full applet, or experiment with syntax problems. In Windows. Invoke the tool like this:
|
1.22 C:\test>applet MyApplet 1.22 C:\test\MYAPPLET>dir Volume in drive C has no label. Volume Serial Number is 3713-2A7B Directory of C:\java\MYAPPLET 09/03/99 08:34a |
|
As you can see, it has created the subdirectory The steps to change the default editor are the same as for the
application generator above.
|
1.22 C:\test\MyApplication>set JUMPSTARTEDITOR=start wordpad 1.22 C:\test\MyApplication>x |
|
In Linux. Invoke the tool like this:
|
1.17 [ndenete@PCSN709199 test]$ . applet MyApplet 1.17 [ndenete@PCSN709199 MyApplet]$ ls -l total 10 -rw-rw-r-- 1 ndenete ndenete 166 Sep 2 18:26 MyApplet.html -rw-rw-r-- 1 ndenete ndenete 213 Sep 2 18:26 MyApplet.java -rwxr--r-- 1 ndenete ndenete 50 Sep 2 18:26 c -rw-rw-r-- 1 ndenete ndenete 51 Sep 2 18:26 c.bat -rwxr--r-- 1 ndenete ndenete 37 Sep 2 18:26 r -rw-rw-r-- 1 ndenete ndenete 28 Sep 2 18:26 r.bat -rwxr--r-- 1 ndenete ndenete 80 Sep 2 18:26 t -rw-rw-r-- 1 ndenete ndenete 81 Sep 2 18:26 t.bat -rwxr--r-- 1 ndenete ndenete 103 Sep 2 18:26 x -rw-rw-r-- 1 ndenete ndenete 194 Sep 2 18:26 x.bat |
|
The following steps cause |
1.17 [ndenete@PCSN709199 test]$ export JUMPSTARTEDITOR=emacs 1.17 [ndenete@PCSN709199 test]$ x |
|
|
|
by Noel Enete . . . www.enete.com . . . noel@enete.com |