I am trying to run some old java applets from the old book "Algorithms and Data Structures In Java" by Robert LaFore.
I have JDK 1.8 / Java 8 installed and it includes appletviewer.exe
I don't have any recollection of how one would run them.
I've got appletviewer.exe in my path.
C:\aaa>path=%path%;C:\Program Files\Java\jdk1.8.0_251\bin C:\aaa>appletviewer Usage: appletviewer <options> url(s) where <options> include: -debug Start the applet viewer in the Java debugger -encoding <encoding> Specify character encoding used by HTML files -J<runtime flag> Pass argument to the java interpreter The -J option is non-standard and subject to change without notice. C:\aaa>wget https://cs.brynmawr.edu/Courses/cs206/spring2004/WorkshopApplets/Chap02/Array/Array.class --2020-05-19 07:00:11-- https://cs.brynmawr.edu/Courses/cs206/spring2004/WorkshopApplets/Chap02/Array/Array.class Resolving cs.brynmawr.edu (cs.brynmawr.edu)... 220.127.116.11 Connecting to cs.brynmawr.edu (cs.brynmawr.edu)|18.104.22.168|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3967 (3.9K) [application/octet-stream] Saving to: 'Array.class' Array.class 100%[=======================================================================>] 3.87K --.-KB/s in 0s 2020-05-19 07:00:11 (18.7 MB/s) - 'Array.class' saved [3967/3967] C:\aaa>dir Array.class Volume in drive C has no label. Volume Serial Number is 4645-5DCE Directory of C:\aaa 03/01/2005 15:59 3,967 Array.class 1 File(s) 3,967 bytes 0 Dir(s) 335,436,058,624 bytes free C:\aaa>wget https://cs.brynmawr.edu/Courses/cs206/spring2004/WorkshopApplets/Chap02/Array/Array.java --2020-05-19 07:00:24-- https://cs.brynmawr.edu/Courses/cs206/spring2004/WorkshopApplets/Chap02/Array/Array.java Resolving cs.brynmawr.edu (cs.brynmawr.edu)... 22.214.171.124 Connecting to cs.brynmawr.edu (cs.brynmawr.edu)|126.96.36.199|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2020-05-19 07:00:25 ERROR 404: Not Found. C:\aaa>appletviewer Array.class C:\aaa>appletviewer Array I/O exception while reading: C:\aaa\Array (The system cannot find the file specified) C:\aaa>
As another route I just tried https://sourceforge.net/projects/portableapps/files/Mozilla%20Firefox%2C%20Portable%20Ed./ Mozilla Firefox, Portable Edition 188.8.131.52 2007-10-22
But Firefox doesn't come with the plugin and can't install it
Going back to trying with appletviewer, I found from googling that error, that appletviewer is meant to run be given an HTML file.
So I tried
And I get
C:\aaa>Appletviewer Array.html java.lang.NoClassDefFoundError: personGroup at Array.init(Array.java:746) at sun.applet.AppletPanel.run(AppletPanel.java:434) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: personGroup at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:219) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:152) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 3 more
I tried jd-gui-windows-1.6.6 and opened Array.class and I see that it has
private personGroup thePersonGroup;
At this URL
No doubt that is a reference to a file system
Chap02/Array/Array.class but I can't see any personGroup.class or personGroup.java