Applet freezes while Jar is loading

Hi everyone,
I have a fundamental question concerning the loading mechanism of an applets resources.
The problem is as follows:
I have two jars, the first containing all *.class files, the second (size: 10MB) containing only graphics and sounds.
I start the applet with this code:
<APPLET ARCHIVE="init.jar,resources.jar" HEIGHT="100" [...]>Of course the point is to have the small init.jar loaded fast an display a loading animation while the big file is beeing loaded in the background. Up to here everything works as expected. When i start the applet, the init.jar is loaded and displays a loading animation as long as i try to get a resource from the resource.jar.
When I do that, my applet freezes while the big resource.jar file is beeing downloaded.
This is how i access the resource in the resource.jar
public void run() {
     while(/*some condition*/) {
          // this is the line which blocks until whole jar is downloaded
          java.io.InputStream input = this.getClass().getClassLoader().getResourceAsStream(/*resource String*/);
          // use input to load resource
}The freeze happens only upon the first time the while-loop runs, after that the resource.jar is chached and access is almost instant.
Now the concrete problem is, that the applet freezed in all its threads while the jar is beeing downloaded. I NEED to display an idle animation while this is done.
Has anyone any suggestion how i can avoid the complete freeze?
I have already concidered to load the resources without specifing the jar in the HTML-ARCHIVE-Tag, this works becouse of the codebase i can load the ressources from, but the problem is, that these resources have a large overhead from the server to the client until i can use them in the program.
Also it is no option to load them all on startup in another backgound thread (which would slove the freeze problem, i tried it), becouse i have to dynamically load and unload these resources to avoid OutOfMemory-Errors. Reloading them brings the overhead-Problem up again.
Only when i specify the 2nd jar in the ARCHIEVE-Tag i have direct access to the browsers chache without wasting memory when holding references to all resources.
After all every loading and stuff works, there are no errors in the programm only this strange behaviour. I Also tried it with different VMs, on different OS, and different Browser, all the same.
I would be glad if someone could give me a hint on this, i've been searching for days now, even tried to analyse the Classoader sources but ended up in sun's native calls...
Thank you in advance
- Loddi

I've been encountering the same problem and I think I've figured out the reason behind it and how to solve it.
It appears that the class loader can only ever load one resource at a time. Once you've forced it to start downloading resources.jar, it can't load any classes until that download has finished, not even classes that are part of the Java API. In your case I believe the solution would be to display one loop of your idle animation before you start loading resources.jar, to make sure that everything the idle animation needs has already been loaded by the class loader.

Similar Messages

  • Applet freezes while downloading a ressource jar!

    Hi everyone,
    I have a fundamental question concerning the loading mechanism of an applets resources.
    The problem is as follows:
    I have two jars, the first containing all *.class files, the second (size: 10MB) containing only graphics and sounds.
    I start the applet with this code:
    <APPLET ARCHIVE="init.jar,resources.jar" HEIGHT="100" [...]>Of course the point is to have the small init.jar loaded fast an display a loading animation while the big file is beeing loaded in the background. Up to here everything works as expected. When i start the applet, the init.jar is loaded and displays a loading animation as long as i try to get a resource from the resource.jar.
    When I do that, my applet freezes while the big resource.jar file is beeing downloaded.
    This is how i access the resource in the resource.jar
    public void run() {
         while(/*some condition*/) {
              // this is the line which blocks until whole jar is downloaded
              java.io.InputStream input = this.getClass().getClassLoader().getResourceAsStream(/*resource String*/);
              // use input to load resource
    }The freeze happens only upon the first time the while-loop runs, after that the resource.jar is chached and access is almost instant.
    Now the concrete problem is, that the applet freezed in all its threads while the jar is beeing downloaded. I NEED to display an idle animation while this is done.
    Has anyone any suggestion how i can avoid the complete freeze?
    I have already concidered to load the resources without specifing the jar in the HTML-ARCHIVE-Tag, this works becouse of the codebase i can load the ressources from, but the problem is, that these resources have a large overhead from the server to the client until i can use them in the program.
    Also it is no option to load them all on startup in another backgound thread (which would slove the freeze problem, i tried it), becouse i have to dynamically load and unload these resources to avoid OutOfMemory-Errors. Reloading them brings the overhead-Problem up again.
    Only when i specify the 2nd jar in the ARCHIEVE-Tag i have direct access to the browsers chache without wasting memory when holding references to all resources.
    After all every loading and stuff works, there are no errors in the programm only this strange behaviour. I Also tried it with different VMs, on different OS, and different Browser, all the same.
    I would be glad if someone could give me a hint on this, i've been searching for days now, even tried to analyse the Classoader sources but ended up in sun's native calls...
    Thank you in advance
    - Loddi

    Multiple post
    http://forum.java.sun.com/thread.jspa?threadID=5204797&messageID=9818313#9818313

  • Java applet freezes while loading on Firefox on Mac OS 10.9

    I am using Mac OS 10.9.4 with Firefox 32 and Java 7 update 67. The java applet freezes while loading for the first time. On double clicking, it loads successfully. Once the applet gets loaded then it loads successfully until the web-page is refreshed or cache is cleared. I don't see any error message or any errors in the java console logs. Any help on this issue, apart from the double click work around? Any permanent solution?

    This delay can also happen when Java has been unloaded from memory and needs to be reloaded from disk and (re)initialized.
    You may be tight on available (free) memory if this happens all the time.

  • Scripting embedded QT - entire page freezes while SetUrl is loading?

    I am using Javascript to load various QTVR movies when a thumbnail is clicked.
    The problem is that these files take a while to download, and during that time everything else on the page seems to freeze. I would like to add a simple progress bar to show that the download has started but even an animated gif will stop during the download.
    Is there a way to fix this?
    Rob

    There is not a movie controller in QTVR files that shows the download progress. The best you get as a preview is the "grid" layout as your file downloads.
    You should consider using your javascript code to open a new browser window scaled just above your QTVR dimensions. No other page elements to "freeze" when only one element is used.

  • G4 starts but freezes while trying to load

    My G4 has been acting strangely lately - occasionally when I boot up, nothing lights up. Then, a few weeks ago, I booted up and it said the computer could not load. These were both temporary occurences... but last night I rebooted my computer after it crashed, and now it only loads so far as the Mac OX loading page, and freezes right at the very beginning of loading. I've tried this several times and nothing has changed. Can anyone please help me here? Is this a typical problem, and one that can be fixed?

    here is a couple of links to look at which might help. http://www.thexlab.com/faqs/startupitems.html http://www.macfixit.com/ http://docs.info.apple.com/article.html?artnum=2238

  • IDVD6 freezes while trying to load any theme

    Hey everybody,
    I make DVDs all the time... and I always use iDVD to do it, but recently it started doing something strange. Every time it tries to load an iDVD theme, the whole program freezes (spinning beach ball) and I have to force quit.
    I can't even create a new project, because it tries to load the default travel theme or whatever and freezes. The only way I can get iDVD to open is by opening up an old project that I have made in which I used my own image as the background.... but I really like Apple's themes and I'd like to continue using them!
    What should I do??
    Thank you!

    Hi
    Not knowing the origin to Your problem - General approach when in trouble is as follows:
    Many possible origins. Four most common:
    • Free space on internal (start-up) hard disc if it is less than 10Gb should raher have 25Gb
    • Hard disc is untidy: Repair Permissions, Repair Hard disc (Apple Disc Util tool)
    • Delete iDVD pref file - or rather start a new account - log into this and re-try
    • Program miss-match: iDVD 6.0.3, Mac OS X.4.10 AND QuickTime 7.2 - is OK
    Yours Bengt W

  • Photo Downloader freezes while Devicelist is loading

    Hi there,
    on my iMac (OSX 10.5.8) the Photo Downloader works well when the system is "freshly started". At any uncertain point in time, when I launch Bridge and the Photo Downloader, the window "Device list is loading" (actually "Geräteliste wird geladen") is shown and ... nothing happens anymore. When I kill Downloader an restart the wohle system, next time Downloader works well. Until the problem reoccurs after quiting and relaunching Bridge/Downloader.
    Any idea?
    Regards
    ktm_toto

    When I kill Downloader an restart the wohle system, next time Downloader works well. Until the problem reoccurs after quiting and relaunching Bridge/Downloader.
    You could try to quit Bridge and Photodownloader and then from the user library  Preferences folder find and manual delete the plist file for Photodownloader (com.adobe.photodownloader.plist) This will be recreated with a default one after having started Bridge and Photodownloader. So you will have to choose your own customized settings once to get t back to what you like.
    If the problem persist also check your system maintenance. Have you already tried to check and repair your permissions? Use Apple Disk Utility for this (in the utilities folder in Applications)

  • Firefox keeps hanging while trying to load facebook

    I have been using firefox on my laptop for over a year now and haven't had a problem until the other day. I have been reading through multipul articles trying to fix my problem but yet nothing has helped. It started the other day when all of a sudden firefox just crashed and closed. When re-launching it it would just freeze. After playing around with it I ended up just uninstaling it and then re-downloading it which seamed to fix the problem then. It worked fine until today. Out of nowhere when I would open firefox it would just freeze. Ive now narrowed it down to just freezing while trying to load my news feed on facebook. I have created a new profile, disabled all un-needed pluggins and addons and tweeked with firefox's settings to try and fix this but nothing has helped. ):
    also just as I was trying to recieve the troubleshooting information it froze aswell.

    Can someone please help? Haha, I'm sure there's a simple explanation to this.

  • Loading applet for a jar within an ear

    Hi,
    Apologies if my question sounds ignorant, this is the first time i'm playing with applets.
    I'm trying to load an applet from a JAR (applet.jar) which contains all the files specific to the applet. The applet.jar resides within an ear (application.ear) which is deployed on JBoss.
    The applet related stuff is in the package com.dms.applet (which makes up the applet.jar)
    My index.html resides in a war file (webapp.war), which essentially contains a bunch of servlets. Index.html is a two frame page, which tries to load the applet in one frame and a servlet in another (servlets work fine).
    My <APPLET> tag for the frame in which the applet is displayed (is another html file - applet.html) looks something like this:
    <html><body>
    <APPLET
         code="com.dms.applet.NavigationApplet.class"
         codebase=./"
         archive="applet.jar, application.ear"
         width=200
         height=500
    >
    </APPLET></body></html>
    however, the applet always fails to load, i get the following exception when i open the java console:
    java.lang.ClassNotFoundException:
    com.dms.applet.NavigationApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    load: class com.dms.applet.NavigationApplet.class not found.
    java.lang.ClassNotFoundException:
    com.dms.applet.NavigationApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    It seems evident that the applet class loader can't find my applet.class and hence can't load it. I guess that its something wrong with my <APPLET> tag, but can't quite seem to get my finger on it. Do i need to explicitly tell the class loader to look for it in the applet.jar which is in the applicatin.ear?
    Any help would be very much appreciated.
    Thanks in advance
    EnterpriseJavaBones

    Hi,
    I managed to fix this problem. For those who mite come across the same issue in the future, this is how i did it.
    I put the applets code in the war file under an applet dir. That the the index.html is in the root (of the war dir) and the applets code is in a /applet dir.
    Hence the codebase simply reads, codebase="applet/"
    Cheers
    EnterpriseJavaBones

  • Safari freezes while loading

    I am running Safari 4.03 on a G4 Mac with os x 10.4.11.
    About once a day, Safari will freeze while loading a page. The stop loading button does nothing. Eventually I have to force quit. Anyone know anything?

    I'm kinda a noobie to a mac so forgive me if this is lame. I was reading this post and i have kinda the same problem except when i go to open safari it just flashes and says that it can't be opened. I have reset safari and emptied the cache and it still won't open. Although sometimes when i go to open safari if i click on the top sites button in the far left corner when trying to open safari it will open that way and let me use safari to surf anywhere i propose to search. Any answers would be greatly appreciated. Thanks

  • Logic freezes while loading Space Designer presets

    Logic freezes while loading Space Designer presets when I am working on my template and songs. If I create 1 track in a new empty project there is no problem with Space designer.

    And with Logic 8, I am stumped as to how to find all of my samples and virtual instruments that I used in Logic 7...Where is the "folder" that I drag my Sampler Folder alias into? Any clues?

  • MSI P35 Neo-F (MS-7360): Computer randomly freezes while playing games

    Hi there,
    I have reached the end of my technical knowledge right now and I'm not even sure if this area of the forum is appropriate. The problem:
    While playing higher-end games like Crysis 2, Anno 1404, Mass Effect 2 etc. my computer randomly freezes and the last few milliseconds of sound are being looped on my speakers (kind of like a buzzing sound).
    By "freezing" I mean that my computer becomes unresponsive to any action other than pressing the Reset-Button or holding down the Power-Up-Button (no reaction to Ctrl+Alt+Del, Alt+F4, Alt+Tab, no mouse movement... you get it).
    There's no exact timing as to when these freezes occur. The fastest freeze happened after less than a minute of playing a game, slowes one (just today after switching to my newer case with better cooling) took about 2 hours.
    This freeze only occurs while my System is under load. No freezes while browsing the web, using office programs, listening to music or watching videos.
    System Specs:
        Mainboard: MSI P35 Neo-F (MSI-7360)
        CPU: Intel Core2Quad Q6600 @2.4GHz
        RAM: 4x 1GB DDR2-800 Corsair XMS2
        Graphics: Gainward GeForce GTX 560 Ti, 1GB GDDR5 VRAM
        PSU: Antec High Current Gamer 620W (upgraded from Xilence XP600, 600W)
        New CPU Cooler: Arctic Freezer 13 Pro (upgraded from OEM Intel Boxed Cooler)
        New Case: Zalman Z9 Plus w/ 4x 120 mm Fans (Upgraded from a Case with only 1x 250mm side Fan)
        2 Western Digital HDD (1x 2TB, 1x320 GB)
        1 DVD Reader/Burner (unimportant for that error I guess)
        OS: Windows 7 Ultimate 64-Bit
        2 Screens: 1x 24" Asus VS248H and 1x 21" LG Flatron Wide W2240T
    Since this error is bugging me for quite a while now and since this is not the first forum I'm trying to get help from, here's a list of steps i already took to get rid of it, obviously to no good use:
        reinstalled games where the freeze occurred
        updated all Drivers (including cleaning old versions in safe mode; also tried older drivers)
        updated BIOS to v1.A0
        Reinstalled Windows
        bought new Case and CPU Cooler to improve Air Flow/Cooling
        checked Seating of all components (took out, cleaned, reapplied thermal grease where neccessary, re-inserted)
        cleaned old case of dust (obviously no problem in the new case, which is 2 days "old")
        ran 7 sequences of Memtes86+ without any errors
        ran Prime95 without any errors for about 45 Minutes
        ran Furmark for 15 Minutes under full load (burn-in test) without any problems, even though my graphics card hit the 100°C frequency-cut level
        ran Furmark and Prime95 simultaneously without any problems
        took records of component temperatures and system voltages without noticing anything unusual (at least not after i switched to the newer PSU, which is about 1 Month old - yet didn't resolve the problem)
        tested with cyclic removal of 1 RAM device to further rule out RAM malfunction
        tested with only 2 RAM devices in dual channel mode (Slots 1 and 3)
        tried to reduce RAM clock (800 MHz --> 667 MHz) to no avail
        checked S.M.A.R.T. values of HDDs, no issues reported
        tested without any background programs
        raised/lowered voltages to RAM, CPU and Chipset in BIOS to increase logic circuit stability/decrease heat production
    I need to mention: After I transferred my system to the new case, i was able to play longer than average compared to my old case. So I am guessing that improper cooling was part of the problem, yet improving cooling obviously didn't resolve it.
    Since these freezes are really annoying and nobody could help me resolve this so far, I'm hoping to find some new ways of narrowing down the problem or even getting rid of it here.
    Regards
    Sebb

    Quote from: Bernhard on 10-July-12, 13:15:30
    Lets be realistic. A system with a 560TI is recommended to have a around 31Amps under full load, a CX500 would be sufficient.
    Have you monitored your CPU and memory utilisation ?
    As suggested before, test the GPU in another computer to see if the behaviour is the same.
    Whew, I thought for a second there that my common sense had left me when I saw that 60-Amp-Post ^^
    Yes, I monitored CPU and RAM usage, there is no recognizeable pattern to be seen and it almost never happens under full load.
    I will see if a friend of mine can test my GPU on his computer, and I will test it underclocked right away.
    Though one more question regarding that: Should I only underclock GPU Core Clock or both Core and RAM clock?

  • Why does my entire computer freeze while opening or using After Effects or Premiere Pro CS5?

    Just built a computer to meet all requirements for Adobe, Autodesk 3ds Max, and UDK, for school.
    Specs;
    Motherboard - ASRock X79 Extreme 4-M, Socket 2011 - Micro ATX - 4 DDR3 1600/1333/1066/800 - 3 PCI-E 3.0 x 16 - 7.1 CH HD Audio - PCIE GLAN - 3 SATA3 - eSATA3 - 4 SATA2 - 4 USB 3.0 - 10 USB 2.0
    Processor - Intel Core i7 Processor - i7-3820 LGA 2011
    Processor fan - Intel Thermal Solution RTS2011 AC
    RAM - Ballistix by Crucial - 2x  8GB Tactical PC3 - 12800 CL8 1.5 VW/XMP = 16GB RAM
    SSD - Crucial M4 SSD 128GB - Comptatibility with 6Gb/s & backward compatible with SATA 3Gb/s
    HDD - Seagate Barracuda 1TB - 7200 RPM up to 32mb cache
    Power Supply - Cooler Master Extreme Power Plus 700W
    Graphics Card - EVGA - NVIDIA GeForce GTX480 - DirectX11 - CUDA - OpenCL Support - PhysX Technology - OpenGL 4.1 (so says the box it came in; but if I'm not mistaken I think the command prompt had shown OpenGL 3 or 3.2)
    Disc Driver - LG DVD/CD RW... It is an OEM, Windows claims it is updated.
    I use an external component - USB Microsoft Wireless Mouse & Keyboard 2000.
    I have, as far as software goes...
    Windows 7 64-bit SP1
    Adobe Creative Suite 5, student version or what have you.
         - I do have several plugins installed as well for After Effects only.
    Autodesk 3ds Max 2012
         -I have several maxscripts as well as a couple plugins for 3ds Max.
    UDK 2-2012 & 3-2012
    NVIDIA PhysX Lab 1.1
    NVIDIA Texture Tools 2
    NVIDIA plugin for Photoshop
    xNormal
    ConTEXT
    UnCodeX
    Quicktime
    AVG Free
    Malwarebytes
    7-Zip
    Java
    Sculptris
    As for anything else giving me issues I haven't noticed anything besides a previous Graphics Card wasn't supported very well at all with 3ds Max, it would freeze while using the material editor which was fixed with replacing a GTX550 ti with a more compatible GTX480. Thought maybe the upgrade would also solve the fact that almost everytime I go to start up and/or use After Effects or Premiere Pro CS5 my whole system freezes. Whether or not I'm doing anything, it occasionally happened during "Scrubbing" the timeline, but also during the splash load up screen. Would take the time to wait for several minutes but nothing would change. Hard reboot was needed. After countless hours of searching online I stumbled upon what is called an "Unlock" for Premiere Pro/After Effects to allow accelerated GPU and CUDA cores. Simple procedure, seems as if things go faster... When it is working. But still, I encounter freezes on my entire system. It isn't a crash back to Windows or anytihng. Just a complete freeze on the entire system. I have not extensively used other Adobe programs besides Photoshop quite briefly just so I could open menus and force a freeze within 5 minutes and noticed nothing wrong. Which in AE & PP just running through any of the menu windows can quickly cause a sudden freeze.
    note* I have alternated shutting off and turning on OpenGL as well as multiprocessing. Doesn't matter, it really doesn't seem to change much of anything.
    Alas, I am absolutely sure, after checking and re-checking 80+ hours over the past 2 weeks that yes, everything is updated as far as each individual program, software or hardware will allow me to update them. I have reinstalled Windows as well as each program up to 3 times, and 1 system (restore?) I had Windows dump everything, started from scratch, backed up nothing. To reinstall everything from scratch, while not installed several "Utilities" or software components from stuff like the Motherboard and its XFAST USB/LAN or whatever, thinking maybe it was cluttering up anything.
    Please, if anyone has any ideas upon this and could give me advice, whether you notice any other incompatibilities or anything. Any and all advice would be greatly appreciated. Thank you.
    note* I do not have a wired Keyboard or mouse to disable the USB plugin and attempt that route.. at least not yet, its on my list of things to do. Also, I did run Memtest86+ during a boot and it claims that everything there had passed 100%. I am not "overclocking" anything either. I just wanted something I could work smoothly on, that would have decent rendering capabilities. I used to use my girls' laptop which was an HP with 3GB RAM and never experienced crashes or freezes and I could use AE, PPro, 3ds Max with some lag but not any issues. Rendering took forever on it, but I usually avoided that 'cuz it would start heating up pretty fierce. Saved my rendering for school computers where I could. But either way, now I have this expensive piece and it is getting frustrating that I cannot work on it.
    note* Also, incase it does help, I have Windows as well as any major components installed onto the C: drive (aka SSD for my system) while all my secondary software, such as Adobe, Autodesk, etc. are all installed directly to my D: drive (or HDD) And everything is set up to go through Windows Firewall as well.

    Thanks all. I have just tried a few things, installing them onto the C drive as you all specified as not being one of them. I can understand it, but at the same time i have a classmate who has their software on a seperate drive and it runs smoothe. I'm on my second GPU in 2 weeks, unless I have terrible luck it seems doubtful being that I can run games and a majority of the software no problem. Through further testing around with a corded mouse and keyboard I've noticed the following...
    The computer freezes entirely only when I'm performing a "scrubbing" action or using a mouse. Left clicking, scrolling, or moving it around. Otherwise if I do not use the mouse and I make all my actions, such as "scrubbing" in AE via "Page Up & Down" keys, there's no freeze and it preloads the preview no problem.
    "Scrubbing" does not load a preview (the green bar doesn't load at all while scrubbing). But, also noticed no matter how smoothe everything is running in 3ds Max as well as PPro, once I start performing a "scrubbing" action with whatever timeline I use, it will definately freeze my whole computer, Windows and all. Hard reboot is neeed.
    With having gone through 2 GPU's, done a full memtest via Windows 7 and Memtest86+, there seems to be no issue with my memory or GPU. Like I said, I've run UDK without an issue. Whether the editor or game. The USB doesn't seem like it's the cause, I've used both wireless as well as wired keyboards/mouse. Still freezes, but now only when using a mouse to "Scrub".
    Is it possible my motherboard could be incompatible somewhere? I mean, really.. everything is brand new but 2 weeks of troubleshooting.
    And I do plan on trying to run my software off the C drive, I just wanted to make sure it wasn't something else, like I said, I've seen and used a computer where it all runs off the D drive and it runs perfectly, actually better on his computer than off the C drive at my schools. So if it is an issue would it lie within the fact that I'm using an Nvidia GPU? Considering my classmate is using a AMD/ATI Radeon or something like that.
    Again, to those who replied, your shared knowledge is greatly appreciated, thank you.

  • Class not found in applet using 2 jar files

    I have an applet which has been working for years as a stand alone or connecting directly to a derby database on my home server. I have just changed it to connect to MySQL on my ISP server via AJAX and PHP.
    I am now getting a class not found error in my browser, probably because I'm stuffing up the class path.
    The HTML I am using to call the applet is:
    <applet code="AMJApp.class"
    codebase="http://www.interactived.com/JMTalpha"
    archive="AMJ014.jar,plugin.jar"
    width="500"height="500"
    MAYSCRIPT style="border-width:0;"
    name="jsap" id="jsap"></applet>The AMJ014.jar contains the applet and supporting class files.
    The error message is strange to me because it refers to a class I noticed on another web page but which has nothing to do with my applet. Anyway, the message in full is:
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: NervousText.class
    java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0

    Thanks again.
    The page code is:
    <html>
    <head>
      <title>Applet to JavaScript to PHP</title>
    </head>
    <body>
    <script type="text/javascript">
    function updateWebPage(myArg)
    document.getElementById("txt1").innerHTML=myArg;
    if (myArg=="")
      document.getElementById("cbxItem").innerHTML="";
      return;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        document.getElementById("cbxItem").innerHTML=xmlhttp.responseText;
    xmlhttp.open("GET","putitem.php?id="+myArg,true);
    xmlhttp.send();
    </script>
    <form>
    <table border=1 align='center' cellpadding=0 cellspacing=0 >
    <tr><td style='text-align:center; background-color:#C0C0C0'>Compiled Java Applet</td></tr>
    <tr><td><applet code="AMJApp.class" codebase="http://www.interactived.com/JMTalpha" archive="AMJ014.jar" width="500"height="500" MAYSCRIPT style="border-width:0;" name="jsap" id="jsap"></applet> </td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML Textbox filled by JavaScript</td></tr>
    <tr><td><textarea style='width:500px; height:50px' name='txt1' id='txt1'>Query goes here</textarea></td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML diagnostic messages rendered by PHP script</td></tr>
    <tr><td><div id="cbxItem">PHP info will populate this space</div></td></tr>
    </table>
    </form>
    </body>
    </html>The URL of the problem page is:
    http://www.interactived.com/JMTalpha/AMJTest.htm
    The code in the page is based on the following test page, which works:
    http://www.interactived.com/test5Applet.htm
    And the Applet, before I made any changes can be seen at this address:
    http://www.interactived.com/jartest0906.htm
    Thanks again for you interest.
    Edited by: 886473 on 21-Sep-2011 00:47

  • Fix Applet Freezing for once and for all!

    You know its really surprising to me that this applet freezing bug isn't being seriously worked on by Sun or Microsoft or whoever is responsible. I have been plagued by this for 3 years now and there is no improvement.
    Everybody who plays online games on the internet knows of the notorious Java "freezing" problem (there are notes in the FAQ's of all the major gamesites: pogo, gamesville, bingo.com, bingoonline, etc), and it is commonly understood that it is caused by sound conflicts.
    This is a problem that really irritates hundreds of thousands of people every day, and is doing a lot to give Java a very bad name. If I tell prospective customers that my games are Java based they wince and tell me that they would prefer Flash front-ends because of this freezing problem.
    I know what some of you are thinking: Q: Why not loop a silent sound clip in the background? A: That only results in a 70% improvement in the freezing, but when people play casino games nonstop they still freeze at least once every half hour. Q: Freezing is due to bad programming A: Thats a crock. I have yet to hear about a single online applet with sound that doesn't suffer from this problem. Turn off the sound, and the problem goes away completely.
    So seriously, if any of you are as sick of this as I am, please vote for this bug in the bug parade:
    http://developer.java.sun.com/developer/bugParade/bugs/4394767.html
    Chuck

    Hi there,
    As I mentioned in my message the only workaround that marginally improves the situation is to loop a silent sound clip while the program is running. I'm not sure if this problem occurs with the plugin or even java 1.2- it doesnt make much difference to me because I still have to write my games in java 1.1 so that they can be used on most browsers without requiring the players to install special software or plug-ins. I do recall seeing a "patch" on the microsoft site last november that was supposed to fix this problem, but obviously it didn't..

Maybe you are looking for

  • For best performance what's the size of an image to be stored in database?

    Hi all, can any one tell me..for best performance what's the size of an image to be stored in database? is it <256kb  or >256mb? when i google  we can store image as varbinary(max) and its limit upto 2GB.. Can anyone exlain it? is it performance wise

  • Camera Raw and Canon 70D

    I just got a Canon 70D. Great camera, but having trouble opening the CR2 files. I have a Creative Suite 5. I tried doing an update to the version 6.7 that is needed. I found the files and updated to a recent version 6.7.1.340. That is what my camera

  • Videos have no Sound...Someone plz help!!!!!

    Whenever i convert one of my videos in itunes or any other mp4 converter, it ends up coming out with no sound on my ipod. Can someone please give me some ideas on how to fix this

  • SSD won't boot after using Win 7 recovery discs

    Hi, I bought a Samsung SSD 850 EVO 1TB for my HP Pavilion dv7-4012eg which had a 1TB hard drive (same size). I took off the original hard drive and attached the SSD on the primary slot, leaving the original hard drive unattached until I configure eve

  • Deploying Master Repository

    Hi, I would need some advise on 2 things 1. I need to transfer my Master Repository from a development machine to a production one. What are the best practices to do this? The export/import functionnality does not seem to work. Should I just copy the