Installing and Running Jshock


The Jshock Application

Jshock is packaged as a .tar.gz file that contains all the .class files and icons needed by the editor and applet. If you are reading this HTML page, then you most likely have already unpacked the .tar.gz file successfully.

Once the archive file has been unpacked, you can start the jshock editor by typing :

java jshock
in the directory containing the jshock classes (assuming the java interpreter is in your path). The editor window should then appear, allowing you to create and save a new presentation.

The editor works in the same way as most normal applications, and allows you to have multiple presentations open at the same time, copy and paste between presentations and so on. For more information about using the editor, see the User's guide.


The Jshock Applet

Once you have created a presentation using the editor, it can be embedded into a HTML page using the jshockApplet class. Assuming the jshock class files are in the same directory as the presentation and the HTML page, you only need to add an applet tag like :
<applet code=jshockApplet.class width=500 height=150>
<param name=presentation value=foo.pres>
</applet>
Of course, the width and height of the applet should be the same as the presentation, and the correct presentation filename used in the param tag.

The example above, when embedded into a HTML page looks like:

You can also have the applet display Pause and Rewind buttons in the top-left corner, by adding another parameter to the applet tag. This parameter should look like:

<param name=buttons value=1>

Known Bugs

Under JDK 1.0.2 for Windows 95, when the user opens the element editor the list of positions for the element is not displayed until the window is resized by the user. This does not occur under JDK 1.0.2 for Solaris. The same thing happens when the points editor for curve and freehand elements is opened. Also, when using JDK 1.0.2 under Windows, occasionally the editor will fail with a string 'Class not found' exception, even though the class is definately available!

The jshock application has been tested under JDK 1.0.2 and 1.1.3 on Solaris and Window 95. The jshock applet has been tested under Netscape 4.02 on Solaris and Window 95, and IE 3.0 on Windows 95. Other compatible Java runtimes should be able to run the applet and application with no major problems.


Return to index