tags:

views:

159

answers:

3

I'm trying to figure out where java Applets that I run from the browser get downloaded to. I'm using Firefox 3.0 on Windows XP with Java 1.6 if that makes any difference.

From the Java Control Panel on the toolbar, I can access "Temporary Internet Files -> Settings" to find the Java cache. From there I can show the resources and see a file called "dws2010066.dat". Does this resource correspond to a file on disk? I did a search in the Java cache (and my whole computer) but came up empty handed.

+3  A: 

I remember a recent SO answer that mentioned that Windows does clever stuff to obfuscate the real file names and locations of temporary internet files. I believe that this is an attempt to make life hard for malware. That would explain why the file does not show up in a search.

As @leonm says, if you just want to get hold of the applet JAR file, why not just read the HTML file, find the link to the applet and download it using wget or an equivalent tool.

Stephen C
Could you explain how I might do this with an applet such as http://java.sun.com/applets/jdk/1.4/demo/applets/BarChart/example1.html ?I can't figure out the argument I should give wget.
wp123
In this case, it is not a JAR, just a single class: ` <applet codebase="." code="BarChart.class" width=250 height=130>` so: http://java.sun.com/applets/jdk/1.4/demo/applets/BarChart/BarChart.class
Thilo
You might find this link helpful:http://devdaily.com/java/edu/pj/pj010020/
vinc456
Thanks everyone!
wp123
+2  A: 

If you're interested in algorithm of code that isn't obviously available you should contact the author of the applet.

Please be careful as decompiling to copy algorithms is usually covered by copyrights and other laws.

Pool
+1 for mentioning the carefulness.
BalusC
A: 

In the Kingdom of Nouns

Dinah