Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9210

Re: Applet Question

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nntp-feed.chiark.greenend.org.uk!ewrotcd!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: Applet Question
Date Wed, 26 Oct 2011 11:37:54 -0700
Organization A noiseless patient Spider
Lines 54
Message-ID <j89k25$nkc$1@dont-email.me> (permalink)
References <Xns9F8A8E4E54BE8jpnasty@94.75.214.39>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 26 Oct 2011 18:37:57 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="24204"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9qjLj5RBjhncFXU4HWzPHEQxBUzC3AME="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
In-Reply-To <Xns9F8A8E4E54BE8jpnasty@94.75.214.39>
Cancel-Lock sha1:7woscR+t23xv4WEE7bpb4m0ZQA8=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9210

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

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
        Re: Applet Question Paul Cager <paul.cager@googlemail.com> - 2011-11-07 08:21 -0800
      Re: Applet Question Roedy Green <see_website@mindprod.com.invalid> - 2011-11-07 02:50 -0800
        Re: Applet Question Arne Vajhøj <arne@vajhoej.dk> - 2011-11-07 17:11 -0500
        Re: Applet Question Andrew Thompson <andrewthommo@gmail.com> - 2011-11-08 03:25 -0800
    Re: Applet Question "Nasser M. Abbasi" <nma@12000.org> - 2011-11-09 15:23 -0600
      Re: Applet Question Arne Vajhøj <arne@vajhoej.dk> - 2011-11-09 20:21 -0500

csiph-web