arethinn: glowing green spiral (Default)
Does anyone know how I can yoink a Java applet from a web page? I can see the "applet code=" tag in the source but I'm not sure how to get at it.

(I don't want to do anything naughty with it, especially distribute it as my own; I just find it incredibly useful and would like to be able to use it without dialing up my net connection, and to be sure I'll still have it should the website cease to exist.)

Date: Sep. 9th, 2003 01:41 pm (UTC)From: [identity profile] starlightforest.livejournal.com
Well, when I tried what I ought to have tried before - just displaying the directory level one higher (I had been expecting a "forbidden" error) - I was able to save the entire contents of the directory and thus make a local copy of the whole page. It works. *shrug*

The code in the source, by the way, looked like this: <applet code =" dice">
The main file in question was actually dice.java, so numerous variations on appending " dice" (including trying dice.jar) to the url hadn't been successful. There were a bunch of .class files as well as the .gifs that it uses, so even if I had hit on it, I wouldn't have had anything usable, I don't think. *shrug*

Date: Sep. 9th, 2003 04:20 pm (UTC)From: [identity profile] twopiearr.livejournal.com
Ah, the joy of flexible languages.

Java applets can either be precompiled or executed in a runtime state. The practical difference is that a precompiled applet usually has the .jar extention and is a self-contained thing, whereas the runtime mode is more analogous to a pile of source code that is being compiled on the fly as the user interacts with it. Runtime languages tend not to be preferred because they're slower, but they're also easier to learn.

Sounds like the author of this applet took the latter approach. Your soultion sounds like a good one. Of course there are all kinds of die rollar apps for Windows out there, aren't there? (I mean I can think of four freeware rollers for Mac alone, I can't imagine there's less for windows...)

Ah well. geeking out can often be its own reward anyway :)

Profile

arethinn: glowing green spiral (Default)
Arethinn

July 2025

S M T W T F S
  12345
6789101112
13141516171819
20 2122232425 26
2728293031  

Expand Cut Tags

No cut tags

Style Credit

Page generated Jan. 19th, 2026 12:31 am
Powered by Dreamwidth Studios