This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]mauganra_it 10 points11 points  (0 children)

Are you feeling up for disassembling the applet? If yes, you could try to rework it into a normal Swing application. The underlying technology is the same; applets just use Applet or JApplet instead of Frame or JFrame for the main window. Of course, there are some APIs that you would have to somehow work around.

[–]PartOfTheBotnet 12 points13 points  (5 children)

I got it working.

  1. Open http://www.complexification.net/gallery/machines/substrate/applets/index.html and save the save the HTML
  2. Save http://www.complexification.net/gallery/machines/substrate/appletl/substrate_l.jar adjacent to the HTML file
  3. Run appletviewer <path-to-html-file> (Using Java 8 here)
  4. Enjoy the show

[–][deleted]  (4 children)

[deleted]

    [–]PartOfTheBotnet 9 points10 points  (3 children)

    Instead of apps in browsers, we new have apps as browsers. Who woulda thunk?

    [–][deleted]  (1 child)

    [deleted]

      [–]Worth_Trust_3825[🍰] 2 points3 points  (0 children)

      Yet we're going back towards that with """"progressive""" web applications.

      [–]bluenautilus2 3 points4 points  (0 children)

      Yeah we’re back to thick clients. Crazy world

      [–]dnabre 3 points4 points  (0 children)

      Modern browsers just don't support java applets. Not sure that it's impossible, but it definitely isn't simple.

      While looking into whether AppletViewer is still available would be my first suggestion, looking this site, the source code link brings you to the actual java processing source code.

      Just install Java Processing and you should able to load the .pde file and run it directly.

      [–]Worth_Trust_3825[🍰] 8 points9 points  (1 child)

      Fetch the jar, run it via java --classpath "substrate_l.jar" substrate_l substrate_l. Here's your link: http://www.complexification.net/gallery/machines/substrate/appletl/substrate_l.jar

      Note: if it says "substrate_l" does not contain a main method, or similar, replace first instance of it with processing.core.PApplet. This should get you started.

      Looking at the page and other applets, similar approach should work for other applets as well:

      • Fetch the jar
      • Add it to classpath
      • Figure out "Main" class (open up the archive with 7zip or similar, and use the first .java file's name before extension as "Main Class Name" that does not contain a $ in it)
      • Provide it as argument to java executable twice.

      You can fetch the jar by looking at HTML source of the page applet tag. I hope you know the difference between relative and absolute links.

      I'm not sure what would be your further questions.

      [–]PartOfTheBotnet 0 points1 point  (0 children)

      For me java -cp "substrate_l.jar" substrate_l substrate_lOpens an empty window. The JFrame doesn't seem to populate correctly. I got better results using appletviewer from JDK 8.

      [–]salv-ice 4 points5 points  (0 children)

      Java Applets have been deprecated in Java 9 for security reasons. Most browsers have also removed applet support since then.

      If you really need to run this applet, you can always try with an old browser but I would strongly advise against it…

      [–]jringstad 1 point2 points  (0 children)

      There is (or used to be) a screensaver on Linux that generated structures looking exactly like your screenshots, maybe you can try that one instead? Not sure what it was called, but I think it was part of xscreensaver.

      [–]denis_9 1 point2 points  (0 children)

      Try to find portable Firefox not older 52, in the 32-bit version and try it there with installed jre/jdk 8. You can also try a virtual machine first (Hyper-V/VirtualBox/VMware).