quote:Originally posted by gerrymurphy
I've tried running the Sketcher applet both from Internet Explorer and from appletviewer without success.
Yes, but Sketcher is not an applet but an application. Because it is an application it can perform File input and output, so you can save the sketches you make, albeit in a Sketcher specific format (not GIF).
So how to get a first glance of the Sketcher we will build in the latter part of the book?
You open the MS-DOS screen (if you have a Windows platform).
Then you go to the directory where you stored the Sketcher.class file and the rest of the .class files you downloaded.
How to achieve this if you arre a beginner is not so easy either.
You type on the command line:
cd.. - to move to the parent directory
dir - to get an overview of the directory
cd dirname - to open another directory
OK so you arrived in the right directory, then:
java Sketcher - opens the Sketcher application
BUT you have to set the path to the
bin where the java (and javac, etc.)
in first place in the classpath,
else java cannot find any .class files
In the SDK documentation you will find how to set the classpath,
if you have done so you can check it in the AutoExec batch
Francis @ chapter 15
it took me a few months only to get this matter right:
working in the MS-DOS screen and setting the classpath