LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-06-2007, 02:02 AM   #1
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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?
 
Old 05-19-2007, 07:20 PM   #2
Sancroff
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
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.
 
Old 06-15-2007, 06:42 AM   #3
ebon
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
exactly the same pain here ;(
 
Old 06-15-2007, 06:59 AM   #4
ebon
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
>> 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!
 
Old 09-06-2007, 05:34 PM   #5
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

Try here...http://www.tldp.org/HOWTO/Java-CGI-HOWTO.html This is for CGI Programs...
 
Old 10-23-2007, 02:55 AM   #6
liutabme
LQ Newbie
 
Registered: Oct 2005
Posts: 26

Rep: Reputation: 15
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
 
Old 11-18-2007, 07:43 PM   #7
mlissner
Member
 
Registered: Jun 2006
Location: Berkeley, CA
Distribution: FC5
Posts: 37

Rep: Reputation: 15
In Ubuntu if you have Sun Java installed, it's in System > Preferences > Sun Java 5.0 Plugin Control Panel.
 
Old 11-29-2007, 11:37 AM   #8
liutabme
LQ Newbie
 
Registered: Oct 2005
Posts: 26

Rep: Reputation: 15
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.
 
Old 11-29-2007, 11:39 AM   #9
liutabme
LQ Newbie
 
Registered: Oct 2005
Posts: 26

Rep: Reputation: 15
Thanks, under Slackware it is quite different,as I eventually discovered. Type ControlPanel in an xterm, then click Advanced->JavaConsole->ShowConsole.
 
  


Reply

Tags
applet, cache, firefox, java



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't type in Java applet using Firefox? JamieBrown Linux - Software 12 07-26-2010 01:52 AM
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
JAVA JRE installation to view java applet through browser dipenchaudhary Linux - Software 1 01-23-2006 09:20 AM
Java applet error: "Applet Failed" nro Programming 1 08-28-2004 05:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration