Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm working on writing a Java applet and am doing testing/debugging on my local machine (Kubuntu 7.04 in Firefox 2). I have a problem in that reloading my test page does not reload the applet (i.e. if I change the applet and put new class files in the Web directory, the browser still displays the "old" applet on reload). The only way to get the new applet is to close and restart Firefox (just clearing the cache doesn't seem to help).
I thought this might have something to do with Applet caching in the JVM, but I think it's only for jar files, but just to be safe I opened the Java ControlPanel and turned off caching -- to no effect. I also tried adding a no-cache pragma to the HTML code -- again, no help. Does anyone have any idea how to make Firefox reload the applet class files when I reload the page?
Open the Java Console (not the Control Panel) and press 'x' to clear the classloader cache. This will only work if the applet is not running. So you need to close the browser tab it is on.
Pain in the neck? Yup. If you find an easier way, please let me know.
1/ run Java Control Panel
2/ not need to disable "Temp Internet Files" - so enable it back (just to be sure, that your code will work correctly on all machines with default setting
3/ goto "Advanced" tab
4/ open list called "Java console" and change the selection to "Show console"
5/ OK
Now when you load your html page with applet object in it - the java console shows itself too
change the source of the applet, compile it AND!!
....go to the console and pres key X on keyboard - that it!
F5 to refresh your browser and you got loaded new applet binary
I have the same problem reloading the class files (from firefox), but I haven't been able to locate the Java Console or control panel on any menu to solve the problem as suggested.
Any suggestions..
Thanks, under Slackware it is quite different,as I eventually discovered. Type ControlPanel in an xterm to run, then click Advanced->JavaConsole->ShowConsole.
Thanks, under Slackware it is quite different,as I eventually discovered. Type ControlPanel in an xterm, then click Advanced->JavaConsole->ShowConsole.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.