Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9210
| From | markspace <-@.> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Applet Question |
| Date | 2011-10-26 11:37 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <j89k25$nkc$1@dont-email.me> (permalink) |
| References | <Xns9F8A8E4E54BE8jpnasty@94.75.214.39> |
On 10/26/2011 10:54 AM, Novice wrote: > I'm trying to get a simple applet I wrote working in Firefox 7.0.1 but it's > not loading. I was advised to look at the Java Console to see what's going > wrong - such as which class is not loading - but I can't find a Java > Console in Firefox. When I googled, I found a page saying that Firefox 6 > and above don't support the Java Console, although they support Java > itself. The Java console is supported now by the Java plug-in itself. Go to your Windows Control Panel -> Java and enable the console in the Advanced tab. You may have to restart FireFox to get this to take effect. > > I'm guessing that I've messed up my<object> tag but perhaps I am trying to > load from the wrong folder from the server, something that the Java Console > would help with. How do I debug this? Other than "try it and see if it works," I haven't found anything. There might be some clues on the console when it comes up, but I found most messages there to be of limited value. > Have applets become obsolete? If not, how do I debug them if they work fine > in my development environment? Not obsolete per se, but I haven't found a lot of support for debugging deployment problems. Besides copious use of the Mark I eyeball on your <object> tag and all its parameters, I suggest you make copious use of logging in the app itself. It's been a while since I've worked on applets, but I also recall that the browser seemed to aggressively cache everything I deployed for testing. This meant that any changes I made wouldn't be picked up by the browser. Make sure you are using shift-reload to force a full page reload. However, this won't help for elements that aren't directly on the page, like the applet itself, and any descriptors deployed with it -- <jnlp> for example. Dumping cache directly within FireFox didn't seem to un-cache everything either. I eventually just moved all my development to a special directory, and set every type of "No Cache" directive I could find (via my Apache webserver) on that directory and its subtree to stop my browser from trying to cache my test applets. This is the opposite of what you want for a normal deployment, but seemed to work for development. You may also have to move everything to a new directory/url to get the browser to pick up a new set of No Cache directives once you add them.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Applet Question Novice <novice@example..com> - 2011-10-26 17:54 +0000
Re: Applet Question markspace <-@.> - 2011-10-26 11:37 -0700
Re: Applet Question Novice <novice@example..com> - 2011-10-26 19:26 +0000
Re: Applet Question "John B. Matthews" <nospam@nospam.invalid> - 2011-10-26 22:38 -0400
Re: Applet Question Roedy Green <see_website@mindprod.com.invalid> - 2011-10-26 16:53 -0700
Re: Applet Question Novice <novice@example..com> - 2011-10-27 00:55 +0000
Re: Applet Question "Nasser M. Abbasi" <nma@12000.org> - 2011-10-26 21:51 -0500
Re: Applet Question Roedy Green <see_website@mindprod.com.invalid> - 2011-10-26 21:43 -0700
Re: Applet Question Roedy Green <see_website@mindprod.com.invalid> - 2011-10-26 16:56 -0700
Re: Applet Question Novice <novice@example..com> - 2011-10-27 01:04 +0000
Re: Applet Question Roedy Green <see_website@mindprod.com.invalid> - 2011-10-26 17:57 -0700
Re: Applet Question Arne Vajhøj <arne@vajhoej.dk> - 2011-11-06 15:20 -0500
Re: Applet Question "Nasser M. Abbasi" <nma@12000.org> - 2011-11-06 14:34 -0600
Re: Applet Question Arne Vajhøj <arne@vajhoej.dk> - 2011-11-06 15:41 -0500
csiph-web