8 Replies Latest reply on Sep 20, 2012 8:20 AM by 962432

    Run applet offline


      I have the following problem, I have to run an applet offline, I wanted to know if there are ways to put my applet offline and download the file locally and not on the virtual file systemof the JVM. I use a deployment with the protocol jnlp. And even if I create a 'icon on the desktop to start my applet later (even after restarting the computer).I use applet for communication with JavaScript web page.

      Thank you for your attention

      Edited by: 959429 on 16-set-2012 15.20
        • 1. Re: Run applet offline
          I use applet for communication with JavaScript web page.
          So how can you possibly run it offline?
          • 2. Re: Run applet offline
            Thanks for your reply,

            In fact, I use JavaScript, I need to be online, I had not thought of that. Even if I do not use JavaScript (example I use JApplet), can not I go offline?
            • 3. Re: Run applet offline
              Not if you want to communicate with your Web page. If you don't want to communicate, you can be offline. This is just a tautology, no analysis required.
              • 4. Re: Run applet offline
                Ideally, the applet is designed to be performed in an environment like the browser. And if I tried to perform a dynamic deployment in a web server installed locally, as for example Glassfish, with another applet that performs deployment. Is this an acceptable solution? Or not?
                • 5. Re: Run applet offline
                  I don't know what the actual question is here. You can run an applet offline provided it doesn't try to communicate with the host it was loaded from, because there isn't one. I've basically already said that. If you have another question I suggest you ask it.
                  • 6. Re: Run applet offline
                    My current problem is to save the web page where the applet is loaded.When I save the applet with the browser, not downloaded the jar files that are used to load the applet. Now, is there a way to retrieve the cached jar files? Or, recover by specifying a tag in the jnlp file? or other options?
                    • 7. Re: Run applet offline
                      Applets resources (jars and jnlp files) are usually saved in user cache. You can view them using the Java Control Panel > General > Temporary Internet Files > View....
                      I think you should be able to launch the applet using the downloaded containing webpage. If you JNLP applet allow off-line then maybe you could launch it completely disconnected. For debugging tip see http://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-Desktop/html/plugin.html
                      • 8. Re: Run applet offline
                        Yes, it is true that the files are saved in the cache, but the Java Virtual Machine manages a virtual file system, so you can not see the jar files in the cache and therefore there is no possibility to launch the applet offline or better the web page with the applet inside. How do I resolve this problem?