• Lucid Dreaming - Dream Views




    Results 1 to 3 of 3
    Like Tree1Likes
    • 1 Post By reci

    Thread: Java applets - very basic question

    Hybrid View

    1. #1
      Member Achievements:
      Created Dream Journal Referrer Bronze 5000 Hall Points Tagger First Class Populated Wall Veteran First Class
      Arra's Avatar
      Join Date
      Jan 2011
      Posts
      3,838
      Likes
      3887
      DJ Entries
      50

      Java applets - very basic question

      I'm just starting to learn java applets. I'm using IE. Every time I need to recompile the code and view the applet again to see the changes, I seem to have to both start a new browser, and delete the .class file before recompiling it (I think). I need to open a new browser; opening a new tab doesn't work. On the school computer I also had to exit the browser, but didn't have to delete the .class file.

      Is there some internet option I can change to make the browser actually look for the .class file and read it again every time the page is refreshed? Or a different browser which does this automatically? I tried firefox at school and had the same problem. I guess if there's nothing to be done about it I'll try using appletviewer (if that's what it's called).
      Last edited by Dianeva; 02-07-2011 at 03:17 AM.

    2. #2
      Achievements:
      Veteran First Class 5000 Hall Points
      reci's Avatar
      Join Date
      Feb 2008
      LD Count
      18
      Gender
      Location
      -
      Posts
      380
      Likes
      90
      (Oh, I remember this problem a while ago, too...)

      I wouldn't think you would need to delete the .class file before re-compiling it. It's doing this because the Java applet is loaded into the browser's cache when you view it. I believe if your clear the browser's cache, compile a new applet, and re-load the page, the new applet should show. CTRL+SHIFT+DEL in Firefox to clear the cache. In IE: Tools > Internet Options > Browsing History > Delete.

      If this doesn't work, tough luck. Still, I don't think you have to manually delete the .class file, so that's one less thing you have to do
      Dianeva likes this.
      Tutorial: How to Fall Asleep Faster
      You are dreaming.Do a reality check.

    3. #3
      Member Achievements:
      Created Dream Journal Referrer Bronze 5000 Hall Points Tagger First Class Populated Wall Veteran First Class
      Arra's Avatar
      Join Date
      Jan 2011
      Posts
      3,838
      Likes
      3887
      DJ Entries
      50
      Thanks. At least I know I wasn't doing something obviously wrong and others probably have the same problem. appletviewer has been working well. I guess if I need to load it in a browser again I'll tell it not to keep browsing history. The problem with going Tools > Internet Options > Browsing History > Delete every time is that it's probably about as inconvenient as starting a new browser. I'm pretty sure I was having to delete the .class file the day I made the post. Starting a new browser alone didn't do anything. But it doesn't seem to be doing that anymore so I don't know what that was about.

    Similar Threads

    1. Basic question
      By Harrow in forum Introduction Zone
      Replies: 1
      Last Post: 01-03-2010, 10:49 PM
    2. quick java question
      By Abra in forum Tech Talk
      Replies: 7
      Last Post: 05-20-2009, 03:10 AM
    3. Basic Terms and Another Question
      By vivedream in forum General Lucid Discussion
      Replies: 2
      Last Post: 02-18-2008, 02:28 AM
    4. Basic Question.
      By Casualtie in forum Introduction Zone
      Replies: 14
      Last Post: 09-17-2006, 11:09 PM
    5. A rather basic question...
      By Jalien in forum Introduction Zone
      Replies: 14
      Last Post: 07-13-2004, 11:38 AM

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •