Just download an applet, use it and discard after use! There are two problems.Since these resource are part of the JAR file, the resources can only be loaded into the application using the ClassLoader.getResource() (which returns a java.net.URL) or ClassLoader.getResourceAsStream I am relatively new to Java, but have done a lot of other programming. I need to write an applet that downloads a zip file from the server (the url for the file being supplied in an applet parameter), unzips the contents onto local disk, and spawns a custom viewer process that uses those files. The url protocol should be file or else null will be returned. package org.kodejava.example.commons.ioimport java.io.File import java.net.URL Use the AppletContext.showDocument(URL,String) method to trigger the download using the browser. For Next Generation plug-in 2 based applets (1.
6.010 in Sun/Oracles JVM) it is possible to hook into the functionality of the JNLP API of Java Web Start. As you can see, the HTML file identifies the Java applet that we want to load - AppletParameterTest.class using an APPLET tag.Java URL example - A Java class to download and parse URL contents. See Code Examples for Java 8 Applet Methods: init(8). Called by the browser or applet viewer to inform this applet that it has been loaded into the system.getCodeBase(5). Gets the base URL. showStatus(5).(java.util.Deque). File.Download Codota for Java.