Clear classloader when exit applet, but not browser

Hi there,
I've got some problems with the classloader.
when i start my applet with the language de, it will correctly name the buttons etc. in german.
in my site it is possible to change the language. after clicking on another lanuage, my applet
restarts with the correct parameters (language=en), but the buttons and so on are still named in
german.
i figured out, that after clearing the classloader cache, the language is the correct one.
how can i clear the classloader cache when i leave the applet, but not the browser?
thanks in advance!

Hi there,
I've got some problems with the classloader.
when i start my applet with the language de, it will correctly name the buttons etc. in german.
in my site it is possible to change the language. after clicking on another lanuage, my applet
restarts with the correct parameters (language=en), but the buttons and so on are still named in
german.
i figured out, that after clearing the classloader cache, the language is the correct one.
how can i clear the classloader cache when i leave the applet, but not the browser?
thanks in advance!

Similar Messages

  • Share safari bookmarks but not browsing history

    In iCloud, how do I share safari bookmarks but not browsing history?

    Thanks for replying. Private browsing doesn't save either type of history, so it wouldn't make a difference.
    I don't want my browsing history available when Firefox is open. I sometimes leave the browser open for days at a time if I haven't turned my computer off.

  • How can I get my ical events from my iMac to my iPhone? Anything I entered into ical on my iPhone will transfer to ical on iMac when plugged in, but not vice versa.

    How can I get my ical events from my iMac to my iPhone? Anything I entered into ical on my iPhone will transfer to ical on iMac when plugged in, but not vice versa. I think I have changed my iPhone (after looking at similar questions) to iCloud, but it's still not syncing.

    You need to sign into your iCloud account on your Mac, and check the Calendar option. System Preferences>iCloud, sign on your iCloud account, check the apps you want to sync with your device.
    Cheers,
    GB

  • Firefox throws "This Connection is Untrusted" when using hostname, but not when using IP address

    I am remotely accessing a website which has iFrame in it. The website uses https, but iFrame tag has "src" pointing to a site using http only. However, when I remotely go to the site, iFrame shows the message below although the ''src" url is http only (there is no SSL certificate) when I use IP address (https://10.10.101.156:8006/apprecovery/admin/Core/Storage) in address bar instead of hostname (https://hostname:8006/apprecovery/admin):
    ===
    This Connection is Untrusted
    You have asked Firefox to connect
    securely to d37t50w1, but we can't confirm that your connection is secure.
    Normally, when you try to connect securely,
    sites will present trusted identification to prove that you are
    going to the right place. However, this site's identity can't be verified.
    What Should I Do?
    If you usually connect to
    this site without problems, this error could mean that someone is
    trying to impersonate the site, and you shouldn't continue.
    d37t50w1 uses an invalid security certificate.
    The certificate is not trusted because it is self-signed.
    (Error code: sec_error_ca_cert_invalid)
    ===
    Why is it giving this when using hostname but not when IP address is using?

    Corrected first para above:
    I am remotely accessing a website which has iFrame in it. The website uses https, but iFrame tag has "src" pointing to a site using http only. However, when I remotely go to the site, iFrame shows the message below although the "src" url is http only (there is no SSL certificate) when I use hostname address (https://<hostname>:8006/apprecovery/admin) in address bar. But I dont see the message in iFrame when I instead use IP Address (https://<IP Address>:8006/apprecovery/admin) to go to main website.

  • Why firefox 3.6 downloads all of the files again after restartarting the browser from a website if the "clear history when Firefox closed" is not Enabled?

    We have a corporate website, we officially support FF3, FF4, IE8 and IE9. Our web site is quite big, so we really need browser caching, first time page load is around 15 seconds. With files in the cache getting new page is less than a second.
    Everything works perfect except with FF3. With FF4, IE8, IE9 if we are on the website, clicking everywhere is fast, the page is in the cache. If we restart the browser, it is still fast, it loads files from the cache.
    But with FF3 we have a problem. Every time we restart the browser, it is loading the files again from the server, instead of using the local cache (checked with Firebug). I can reproduce the problem anytime, it is the same with every FF3 instances. I double checked, the "clear history when Firefox closed" option is not enabled.
    Could you advise please how to use the local cache either after browser restart?
    Thank you!
    Chris

    Just read that the default memory storage on FF is set to 5 mbs. You can up that by clicking on tools, advanced and overriding the default and set it to 50 mbs (if you use lots of tabs) or 10 mbs (if you use just a few).
    I open a blank tab and clear the cache periodically, while I am working. I can have several tabs open and watch videos on Youtube, by doing this. Have you cleared your cache?
    Since I have an older computer, I've also used CCleaner for years. I use it often, but always before signing off. You can get it free...search for CCleaner, download from Pirifoam free. I didn't change any of the settings and it clears crap left behind from uninstalling programs, clears all browsers at once of: cookies, history, passwords, etc. I love it!
    I had freezing, before using the "open blank tab, clear the cache" thing. Now I have no problems. Plus, as I said...you can change the default memory usage for FF and that should help too.
    Hope this helps! Good luck! :)

  • Applet works in applet viewer but not browser...why?

    I won't go into the code, but here's my problem: I work on my applet using Eclipse and its appletviewer, and the applet works fine. I test my applet once in a while by packing all class files and graphics into a jar file, copying it and html file to my desktop and opening the html file. Before, this would work (the applet would get all its info from the jar file), but now... I get a nullpointer exception when I open the browser. If this were to happen in Eclipse, I'd have some way of tracking it. Is there some way of tracking this problem when its seen in a browser?

    here's certain key parts of my code... I think this whole "applet not working outside of the project folder" thing started ever since I changed my init() and start() functions so...
         public void init()
              t = new Thread(this);
              t.start();
              addKeyListener(this);
              addMouseListener(this);
              addMouseMotionListener(this);
              sound = new SoundList(); 
         public void start()
              URL resdir;     
              resdir = getClass().getResource("Graphics/Spacebackdrop_01.jpg");
              backgrndImg = new ImageIcon(resdir);
                   resdir = getClass().getResource("Graphics/Ship_Blue.gif");
              player1 = new Ship(100, 300, new ImageIcon(resdir), this,
                        gameRect, sound);
              player1.setOrientation(90);
              resdir = getClass().getResource("Graphics/Ship_Green.png");
              player2 = new Ship(700, 300, new ImageIcon(resdir), this,
                        gameRect, sound);
              player2.setOrientation(270);
              resdir = getClass().getResource("Graphics/Ball.gif");
              ball = new Ball(50, 50, new ImageIcon(resdir), this,
                          gameRect, sound);
              initMenus();
              //Initialize the goals
              resdir = getClass().getResource("Graphics/Goalpost.png");
              ImageIcon goalImg = new ImageIcon(resdir);
              goal1 = new Goal(8, gameRect.height/2, 100, goalImg, this);
              goal2 = new Goal(gameRect.width - 8, gameRect.height/2, 100, goalImg, this);
              font = new Font("Verdana", Font.BOLD, 16);
         public void initMenus()
              startMenu = new Menu();
              pauseMenu = new Menu();     
              confirmMenu = new Menu();
              int setY = 200;
              ImageIcon img = new ImageIcon(getClass().getResource("Graphics/newgame.png"));
              ImageIcon imgRoll = new ImageIcon(getClass().getResource("Graphics/newgame_h.png"));
              ImageIcon imgPressed = new ImageIcon(getClass().getResource("Graphics/newgame_p.png"));
              startMenu.addCenteredButton(img, imgRoll, imgPressed, setY, 0, gameRect.width);
              pauseMenu.addCenteredButton(img, imgRoll, imgPressed, setY, 0, gameRect.width);
              setY += 20;
              img = new ImageIcon(getClass().getResource("Graphics/resumegame.png"));
              imgRoll = new ImageIcon(getClass().getResource("Graphics/resumegame_h.png"));
              imgPressed = new ImageIcon(getClass().getResource("Graphics/resumegame_p.png"));
              pauseMenu.addCenteredButton(img, imgRoll, imgPressed, setY, 0, gameRect.width);
              img = new ImageIcon(getClass().getResource("Graphics/Yes.png"));
              imgRoll = new ImageIcon(getClass().getResource("Graphics/Yes_h.png"));
              imgPressed = new ImageIcon(getClass().getResource("Graphics/Yes_p.png"));
              setY += 25;
              int imgWidth = img.getIconWidth();
              confirmMenu.addButton(img, imgRoll, imgPressed, gameRect.width/2 - imgWidth, setY);
              //startMenu.activate(); //make starmenu active.
              img = new ImageIcon(getClass().getResource("Graphics/No.png"));
              imgRoll = new ImageIcon(getClass().getResource("Graphics/No_h.png"));
              imgPressed = new ImageIcon(getClass().getResource("Graphics/No_p.png"));
              confirmMenu.addButton(img, imgRoll, imgPressed, gameRect.width/2 + 2, setY);
         }

  • Artist/album names missing when adding folder (but not all of them)

    Yesterday I found iTunes couldn't locate the folder where I store MP3 downloads - ie. I got the dreaded '!' alongside most tracks. When I used the Add Folder command I ended up getting a duplicate of virtually every track.
    However most of the duplicate tracks were only shown with the track number on the original album plus about 12-15 characters from the title (ie. character string used as a label for the MP3 file). There was no detail of the artist or album.
    Given the large number of duplicates involved I decided to clear out the library and have just used Add Folder. Same outcome - 1/3rd of the tracks described in full; the other 2/3rds just show track number and some of the title.
    Suggestions on (a) where I'm going wrong; and (b) whether I can use contents in the Previous iTunes library folder to recreate the library would be greatly appreciated. Many thanks.

    As I've already said this question has been answered maybe no one is monitoring this topic but ... I've just worked out the reason the detail is missing is because the tracks which have limited detail are in WAV format.
    This is where I am completely lost because they have all been downloaded from the iTunes store or from Amazon as MP3 files, and I'm not aware either of the download functions comes with an add-on called "automatically convert to WAV".
    The irony is that this is quite convenient but if anyone can provide an explanation of how it is occurring then I would be interested to hear because I can't figure it out. May still trust my sanity, but not my memory!

  • Air play gives audio from itunes (sometimes) but not browser

    Apple TV used to work fine from all devices on all apps/browsers.  Now I get video but not audio from my Firefox browser via Air Play & if the settings are just right then I can get audio from iTunes ONLY.  HELP!

    UPDATE:
    Well, the nice folks at AJA were kind enough to send another card out.
    It just arrived today. I swapped it out with the older card, and then -  - - - - the problems still persist.
    The computer revved up into turbo mode, and there are still a few glitchy things happening with some basic functions in OSX. (I even did a re-install before putting the new card in).
    Checked / updated the firmware / etc.
    Starting to think this is a MAC issue, but dont' know how to proceed.
    Thanks so much for the help already, but I'd sure love to see this problem resolved once and for all somehow...
    Ideas?

  • Computer restarts when left on, but not asleep

    I'm not sure if this is the right place to ask this, but I did some searching and couldn't find anything close. I need to leave my computer on (ie, not asleep) to keep Azureus(a bittorrent program) connected to the internet. But every time I leave my computer on, with the cover open, a few hours later it has restarted and is at the login screen. I have the system preferences set to not shut down the hard drive and to never sleep, but to turn on the screen saver after fifteen minutes and to put the display to sleep after 30 minutes.
    So I have two questions. Is there a way to keep Azureus connected to the internet while the computer is asleep? Or is there a way to leave the computer on but not asleep without having it constantly restart?

    Welcome to the Apple discussions.
    You posted in the Powerbook discussion area, and your tag line says iMac G4 .... if your question is on the iMac, you might also want to post it in that discussion group at http://discussions.apple.com/category.jspa?categoryID=132. That said, most of what follows is applicable to either system.
    I don't use a screen saver, rather, the display just goes to sleep after 10 minutes. I let my hard disk sleep, which doesn't impact the ability of the system to stay awake and functional.
    Azureus, or any other program, won't work when the computer is asleep.
    Having the system reboot itself is odd. You might want to delve into the console log to see if there are any messages before it reboots. On the energy saver panel, do you have 'restart automatically after a power failure' checked? If so, you might want to uncheck it.
    You might want to try a different bittorrent client, too. I like Transmission. It doesn't have the graphics that Azureus has, however, it works like a champ. You can find it at http://transmission.m0k.org/download.php
    Another step you might consider is resetting your power management unit (PMU), as settings can get jumbled over time. See this Apple note on Powerbook PMU reset: http://docs.info.apple.com/article.html?artnum=14449 . iMac PMU reset is http://docs.info.apple.com/article.html?artnum=95165
    Has this only happened while on OS X 10.4.2? If yes, consider upgrading to a newer release.

  • Task Sequence fails on "Apply Driver Package" when PXE-booting but not with bootable media

    I have an issue where my Task Sequence fails during 'Apply Driver Package' when PXE-booting but works ok when booting from CD or USB-stick. It fails withe error code 0x80070002 and when pressing F8 and checking the ipconfig there's a 169.254.x.x address.
    Somehow it looses it's real ip during the process.
    I'm grateful for any advice!

    Please enable verbose logging for Task sequence, then upload the smsts.log to Skydrive.
    0x80070002 error is too generic, which cannot be used to determine the cause.
    Juke Chou
    TechNet Community Support

  • Eclipse applet viewer works but not browser

    With the code below, my problem is that I am able to get the applet to work in eclipse but unable to get it to work in a regular IE browser. I tried various different ways of getting the path name. The code goes through printing **File name :edu/vt/vbi/pathport/client/plugin/pathinfo/pathinfo.xsl with the classloader being not null. However, it seems that the problem occurs when trying to get the url and then getting the input stream. myClassLoader.getResource(xslFileName); seems to be returning null according to the browser console but is retrieved okay by eclipse. any help would be much appreciated. thanks in advance.
    String clsName = this.getClass().getName();
    int lastDot = clsName.lastIndexOf('.');
    String pkgName = clsName.substring(0, lastDot);
    String xslFileName = pkgName.replace('.', '/');
    xslFileName = xslFileName + "/pathinfo.xsl";
    System.out.println("**File name :" + xslFileName);
    ClassLoader myClassLoader = Thread.currentThread()
                             .getContextClassLoader();
    URL url = null;
    if (myClassLoader == null) {
              System.out.println("classloader is null");
    } else {
         url = myClassLoader.getResource(xslFileName);
    //InputStream is = myClassLoader.getResourceAsStream(xslFileName);
    InputStream is = null;
    try {
         if (url != null){
         System.out.println("url is " + url);
         is = url.openStream();
    } catch (IOException e) {
         System.out.println("url null");
         e.printStackTrace();
    if (is == null) {
         System.out.println("resource not found");
    Transformer transformer = tFactory
                             .newTransformer(new javax.xml.transform.stream.StreamSource(
                                       is));

    problem solved... jar path required extra / in order to be recognized. thanks

  • Applet is viewed by appletviewer but not browser

    Hello All:
    I have created several applets, and they all can be viewed by appletviewer. Some of them can be viewed by both appletviewer and the browser, and I have Internet Explorer. I realized that if in an applet a class extends JApplet, then that applet cannot be viewed by the browser but appletviewer let you view it. Classes in all the other applets extends Applet, and these applets will easily be viewed by both browser and the appletviewer. Could someone please let me know what the problem is? My guess is the platform setting. The platform is J2EE, and each applet and the related files such as html file containing applet tag, etc are in the same directory.
    Thanks,

    it shows up and when i click it shows the mouse position if i somehow refresh the screen (like move some window over the applet )
    it should be repainting but doesn't seem to either... and it doesn't seem to be reading from the file... but all this works fine with the appletviewer...
    udam

  • Applet works on appletviewer but not browser

    Hi,
    I have just started using Java. I'm so new the only program I've tried to compile and run is "Hello World". I'm already having problems running the applet. I'm using Java 2 SDK on Windows 2000. The applet works just fine on appletviewer, but I can't get it to work on Netscape or MS Internet Explorer. What am I missing?

    posting stuff like the error message you get, and a section of the html page might help.

  • Stuff drawn on JPanel will display in Eclipse but not browser?

    Hi guys,
    I wrote a simple java applet and just put it up on my webpage.
    When I ran it in Eclipse, everything worked fine, but now in Firefox, I can see
    the two buttons it has, but there's a lot of stuff
    that was supposed to be drawn to some JPanels by their Graphics2D objects.
    That stuff isn't showing up... the panels are blank :(
    (same thing in Internet Explorer)
    Any ideas what's happening?

    sorry :(
    just figured some people would only check certain favorite parts of the forums
    public class MyApplet extends JApplet{
    JPanel myPanel = null;
    Graphics2D _gfx = null;
    init(){
    _gfx = (Graphics2D)myPanel.getGraphics();
    // The usual constructor, initializes / adds components
    private void restart(){
    drawThread = new DrawThread( gfx );
    _drawThread.start();
    private class ButtonListener implements ActionListener {
    public void actionPerformed(ActionEvent e)
    if( e.getActionCommand() == "Restart" ){
                        restart();
    public class DrawThread extends Thread{
    Graphics2D _gfx = null;
    public DrawThread( Graphics2D gfx ){
    _gfx = gfx;
    run(){
    // setColor()
    // drawString()
    // drawRect()
    // etc.
    // pretty straight forward. not sure what could be wrong...

  • Safari locks up when typing URL, but not from bookmarks

    Safari Version 3.1.1 (4525.18) in OSX 10.4.11 on PowerBook G4:
    The dreaded spinning beach ball appears as soon as I begin to type in a URL (first "w"), requiring a Force Quit. If I access a site from my Bookmarks, no problem. If I copy and paste a URL, it locks up. Google search does NOT have this effect.
    This has followed on from what I would describe as increasing instability (i.e. sudden quits) over the last week or so, which I put down to having viewed too many YouTube vids (I have become very wary of letting Safari run for too many days without quitting and re-opening).
    I am fully up to date via Software Update. Just wish I could remember when the latest version went in, but it wasn't long ago.

    Hello,
    Try a different user account and try to launch Safari that way.
    Adding a new user account to your computer
    You can create individual user accounts for each person who uses your computer. Each new user has a separate home folder and can adjust his or her own preferences without affecting other users.
    Choose Apple menu > System Preferences and click Accounts.
    If some settings are dimmed, click the lock icon and type an administrator name and password.
    Click Add and type the user's name.
    If you don't want to use the short name generated automatically, type a new short name. (Once the account is created, you won't be able to change the short name.)
    Type the user's password in the Password and Verify boxes.
    Type a hint to help the user remember the password if they have trouble remembering it at login.
    Click Parental Controls and select options to determine what the user can do with the computer.
    See if you can launch Safari in a different account. Also, if not, try using a different browser, such as Firefox available here: http://www.apple.com/downloads/macosx/internet_utilities/mozillafirefox.html
    Carolyn

Maybe you are looking for