cd'' to the
folder for this exercise, and enter: ``java -cp jrg.jar Viewmat''.
cd c:\jrg
java -cp jrg.jar Viewmat
On WindowsXP with Sun's J2SDK 1.4.1 installed, the commands would be:
cd c:\jrg "C:\j2sdk1.4.1_01\jre\bin\java" -cp jrg.jar ViewmatNote Viewmat with a capital V. The java commands are case-sensitive.
On Windows98 with Sun's JRE 1.2 installed, you have to run the commands:
cd c:\jrg "c:\Program Files\JavaSoft\JRE\1.2\bin\java" -cp jrg.jar Viewmat(Copy them from here in the browser and paste it into the DOS window using the paste button at the top of the window.) This adds the jrg.jar file to the ``classpath'', allowing Viewmat to use all the
.class files without unpacking them from the .jar
file.
cd ~/jrg java -cp jrg.jar Viewmat &
jrg.jar file with the jar
application included in the MRJ JDK package.
Then you can drag the Viewmat.class icon in the onto the JBindery
icon. Use Find File or Sherlock to locate JBindery within your
installed MRJ JDK folders. Then click the Run button.
Note that you can save a double-clickable
application out of JBindery for Viewmat.