Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-06-2007, 02:02 AM
|
#1
|
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,816
Rep: 
|
Firefox java applet cache
Hi Everyone,
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?
|
|
|
|
05-19-2007, 07:20 PM
|
#2
|
|
LQ Newbie
Registered: May 2007
Posts: 1
Rep:
|
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.
|
|
|
|
06-15-2007, 06:42 AM
|
#3
|
|
LQ Newbie
Registered: Jun 2007
Posts: 2
Rep:
|
exactly the same pain here ;(
|
|
|
|
06-15-2007, 06:59 AM
|
#4
|
|
LQ Newbie
Registered: Jun 2007
Posts: 2
Rep:
|
>> Solved <<
guys i got solution!
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
Happy hacking!
|
|
|
|
09-06-2007, 05:34 PM
|
#5
|
|
Member
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470
Rep:
|
|
|
|
|
10-23-2007, 02:55 AM
|
#6
|
|
LQ Newbie
Registered: Oct 2005
Posts: 23
Rep:
|
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
|
|
|
|
11-18-2007, 07:43 PM
|
#7
|
|
Member
Registered: Jun 2006
Location: Berkeley, CA
Distribution: FC5
Posts: 37
Rep:
|
In Ubuntu if you have Sun Java installed, it's in System > Preferences > Sun Java 5.0 Plugin Control Panel.
|
|
|
|
11-29-2007, 11:37 AM
|
#8
|
|
LQ Newbie
Registered: Oct 2005
Posts: 23
Rep:
|
Using hava console under Slackware.
Thanks, under Slackware it is quite different,as I eventually discovered. Type ControlPanel in an xterm to run, then click Advanced->JavaConsole->ShowConsole.
|
|
|
|
11-29-2007, 11:39 AM
|
#9
|
|
LQ Newbie
Registered: Oct 2005
Posts: 23
Rep:
|
Thanks, under Slackware it is quite different,as I eventually discovered. Type ControlPanel in an xterm, then click Advanced->JavaConsole->ShowConsole.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:16 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|