Applet doesnt load

java.lang.NoClassDefFoundError: MainScreen (wrong name: gui/MainScreen)
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     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)
I have a class called MainScreen which extends JApplet and is in the package "gui"
Here is the code on my website:
<applet code = "MainScreen.class" codebase = "Interpool/gui/" width="200" height="200">
</applet>
Can you please tell me what I did wrong?

I changed my code to:
<applet code = "gui.MainScreen" codebase = "Interpool" width="200" height="200">
</applet>
and got the same error
load: class gui.MainScreen not found.
java.lang.ClassNotFoundException: gui.MainScreen
     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
this time i showed more of the error
Message was edited by:
Nether

Similar Messages

  • User rejected the cab - signed applet doesnt load

    Hi,
    I have signed my cab file and IE requests for permissons when I access it. If I deny the permissions, my signed applet doesnt load. Is there any way to make the applet load even if I dont grant the permissions. I expect only the 'out-of-the-sandbox' operations to fail - not the entire applet!
    Thanks

    I found a solution to this. Details on my blog at:
    http://brandon.fuller.name/archives/2004/08/19/23.19.48/

  • [SOLVED]nm-applet doesnt load

    hi i have just installed arch linux and this seems really cool.  i like it a lot (i still have a LOT of work to do to make it all the way i want) and im still gonna have to do a LOT of reading before im an expert at pacman and AUR amoung other things.
    i just installed nm-applet bcause i want to connect to wireless networks but it fails to run.
    in my gnome startup list i have nm-applet --sm-disable
    i can connect manually in the terminal by using iwconfig.  this wont help me when i am at the university though since we have an 802.1x system (doesnt ever work great with linux by my expirience with different distros. nm-applet version .66 worked pretty well if i remember correctly though).
    anyway how can i get nm-applet to work?
    i tried to ask for help in the IRC but i got this statement
    Please register with services and use the IDENTIFY command (/msg nickserv help) to speak in this channel
    ill have to google that in the morning and figure out what needs to be done for that; im just too sleepy for it now
    thanks.
    Last edited by linuxguy (2009-10-09 15:45:42)

    ok someone sent me a pm and said i needed to add networkmanger to my deamons list.  that seems to have worked for now. 
    i am interested in trying wicd to see if it works better with the 802.1x network at the university. 
    this is kinda a weird story:
    i installed wicd.  there is a menu for it in applications.  i clicked on it and it complains about not being root (shouldnt it run the graphical su prompt? actually better yet i shouldnt need to be root to use it).  well anyway i tried to remove it and reboot and my keyboard and mouse would no longer work in gdm so i couldnt log in.  weird.  i started it up again in single user mode and reinstalled wicd and then the system worked fine again.  i have no idea how that happened.  still interested in giving wicd a chance.  i am a noob at arch but that sure didnt work in a way i would expect
    EDIT: wicd loads up if i log in as root. btw regular user gets errors pertaining to not being root.
    EDIT: oh never mind i needed to add myself to the network group. boy im silly.  i guess ill have to do some real world testing next time i go to the university to see which one works better. btw if anyone is searching this check out this wiki post http://wiki.archlinux.org/index.php/Wicd
    EDIT: marked this as solved. thanks for the help.
    Last edited by linuxguy (2009-10-09 15:46:14)

  • Discoverer plus (Java Applet doesnt load)

    hi
    i have a problem with discoverer when i try to use discoverer plus
    i can connect me via discoverer desktop without problems and view my business area....
    the problem occurs when i clic in the conexion link... the browser open me a new browser and it can´t load the applet of JAva
    *****the load of the applet of Java has failed*****
    ha fallado la carga del applet de Java ( in spanish)
    If i open my Java console i get the follow message:
    cargar: clase oracle.disco.DiscoApplet no encontrada.
    java.lang.ClassNotFoundException: oracle.disco.DiscoApplet
         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
    Exception in thread "Thread-4" java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletException(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    How can i solve this problem? I review logs files in EM (section Discoverer but dont tell me valuable information
    Any help will be apprecciate.
    Alex

    Dear Mr. Ramirez
    I apologize, please, to speak with you in English, I would prefer to speak in Spanish or Portuguese but these forum demands the English.
    I'm facing now the same problem taht you faced on apr-2006, see:
    basic: Registered modality listener
    liveconnect: Invoking JS method: document
    liveconnect: Invoking JS method: URL
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@4cd580, refcount=1
    network: Connecting https://www.MYOCSPORTAL.com/disco/plus_files/plugin/images/download.jpg with proxy=DIRECT
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: httpCompression = true
    network: Connecting https://www.MYOCSPORTAL.com/disco/plus_files/disco5i.jarjar with proxy=DIRECT
    network: Connecting https://www.MYOCSPORTAL.com/disco/plus_files/oracle/disco/DiscoApplet.class with proxy=DIRECT
    network: Connecting https://www.MYOCSPORTAL.com/disco/plus_files/oracle/disco/DiscoApplet.class with proxy=DIRECT
    load: class oracle.disco.DiscoApplet not found.
    java.lang.ClassNotFoundException: oracle.disco.DiscoApplet
         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
    ... follows a lot of jav lines...
    I'm using a 10g platform, with discover and web forms. Also a OCS 10g platform.
    The clients are based on JRE 1.5.0_10, IE sp2, windows XP professional sp2.
    I've been working with this annoying problem for a week, and Oracle support team had spinning around the trouble without a valuable working idea.
    Certainly, you've solved this situation - I hope so!
    Please, can I count on you for any suggestion that can solve my problem?
    Thanks in advance for any reply
    Best regards
    Adilson Brites
    Message was edited by:
    user546151

  • Lotus Notes applet doesnt load after intalling JRE

    Hello,
    Any ideas how to go about this thing? Without the JRE, the applet is ok, but after installing the JRE, there is a class not found exception. I tried taking off my classpath settings but i still cannot access, but when i uninstalled the JRE, the applet goes ok again.
    Thanks for any help extended.
    Regards.

    When installing the JRE you can specify if you want to use this JRE for your webbrowser as well.
    Uncheck this option and you'll do fine.

  • Loading the same native Libaries in different Applets doesnt work !

    The problem is the following :
    I have applet_1 that does System.loadLibary("mydll")
    and i have applet_2 that does System.loadLibary("mydll")
    both calls are static but it doesnt matter.
    When i call applet_1 first in my browser it can do anything it wants (function calling in dll etc).
    When i call applet_2 after that in my browser, it doesnt load the libary, nothing happends - no exception thrown it just doesnt happend anything. The applet works fine but cant do any method calling to the dll.
    The same happends if i open applet_2 first and after that applet_1 suffer the same problems that it cant call any dll methods, unless i close the browser.
    So, the first applet that loads the libary is the only one who is able to call methods within the dll.
    Further observation is, i made a simple class that only loads the libary, i set an int to 1 when the libary is loaded, however when the other applet calls that class the int is NOT 1 anymore, it has its initally value which leads me to believe that every applet in the java plugin has its own virtual machine.
    I found this thread, it has the very same problem. However i didnt find anything about the bug 4299094.
    http://forum.java.sun.com/thread.jsp?forum=30&thread=33843
    Any ideas what i could do to solve this problem ? When i copy the dll and rename it to mydll2 i can use mydll in applet_1 and mydll2 in applet_2.
    Regards

    Further notice :
    I put both applet classes into one jar after i read about the Class Loader Issues in the documentation of the java plugin.
    "Class Loader Issues
    Prior to version 1.3.1_01a, Java Plug-in would use a single class loader to load multiple applets during a browser session. This practice allowed the multiple applets to share information with each other through static variables.
    In order to maximize compatibility with the Java virtual machines embedded in Microsoft Internet Explorer browsers, beginning with version 1.3.1_01a Java Plug-in uses separate class loaders for applets that differ in their codebase and/or the value of the ARCHIVE parameter in the APPLET tags that invoke the applets. Only if two or more applets share the same codebase and have the same value for their ARCHIVE parameter will the same class loader be used.
    Applets that rely explicitly on the old Java Plug-in behavior with respect to class loaders may be incompatible with the new Java Plug-in. That is, applets that rely on the ability to share information afforded by a single class loader may fail to work properly if the new Java Plug-in uses separate class loaders for each applet. If this compatibility issue applies to your applets, you can force Java Plug-in to use a single class loader for multiple applets by simply ensuring that all applets have the same codebase and that the APPLET tags used to launch the applets each has the same value for the ARCHIVE parameter. "
    Both applets now can load the libary but ONLY if executed in the SAME window, if i open a new window and load applet_1 or applet_2 the libary cant be loaded in the NEW window. It will still work flawless in the old window for applet_1 and applet_2 but in the new window applet_1 and applet_2 dont work.

  • Firefox doesnt load an image when *lots* of tabs are open

    Hi,
    An old website I created has a problem displaying a very large background image when *loads* of tabs are open (which makes me think its something to do with memory).
    An example page of the site in question is:
    http://www.southbankcentre.co.uk/about-us
    The white background image (which is super large for reasons not to discuss now) will show fine when, say, up to 10 tabs are open. However, if you have loads and loads of tabs open, this image doesn't display/render (even though firebug says it has).
    Some info about the image:
    http://www.southbankcentre.co.uk/sites/all/themes/southbank-centre/images/template-3-col.png
    79.6kb
    940px by 23000px (super huge I know)
    The problem is when it doesnt load, the copy is hard to read (as you can imagine).
    This doesnt seem unique to my computer. It happens to other peoples firefox browsers (and they have slightly different versions and different plug-ins).

    I'm not having any problems on that page with over 80 tabs open and the number of tabs shouldn't matter.
    Did you check if you can reproduce it with a clean new profile without extensions?
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • No return in JS when accessing an applet in loading process

    When I try to access a property or a method of an applet which is
    not completely loaded by the plug-in, my javascript instruction
    never returns. Not even an exception or a null. The CPU is 100% busy
    with the netscape.exe for ever. When I close the browser, I get a
    Dr. Watson.
    Context :
    Netscape 6.2, plug-in 1.3.1 or
    Netscape 7.0, plug-in 1.4.0
    My purpose is to call the applet just after everything is put in place:
    the applet is loaded, ready is work and laid out on screen. So I do
    the call on the BODY onload event. It's fine with NN4.7 or IE5.5 and
    their internal JVM because when the event fires, the applet is ready.
    The problem is with the plug-in. I know that the onload event fires
    as soon as the HTML is ready, independently from the applet which is
    taken in charge by the plug-in. The availability of the applet takes
    some time because it comes from a signed Jar from a protected area of
    the web server. So you have to walk through two additional steps:
    authentify yourself with the server (first popup) and grant session
    privileges to the applet code (second popup). During this time, onload
    has been executed. I know I have to check if the applet is up and if
    not try again later with a setTimeout().
    But how to check the readiness of the applet? When I try to read
    whatever from it too soon, the code will never return !
    To demonstrate the no-return, just put an alert and wait for the applet
    to be loaded and fully active. Then you can have a return from it.
    Don't forget: because of the user prompts (authentication and grant),
    I can't determine a time to delay the check.
    The code:<HTML>
    <HEAD>
    <SCRIPT>
    function initApplet() {
    // If you uncomment the following alert() and wait
    // for the applet to be fully loaded and running, it will be OK.
    // If you don't, "document.applets[0].isActive" will never return.
    // alert("wait")
    if (document.applets.length != 0
      && document.applets[0].isActive
      && document.applets[0].isActive()) updateApplet()
    else setTimeout("initApplet()",1000)
    function updateApplet() {
    alert("call the applet")
    </SCRIPT>
    </HEAD>
    <BODY onload="initApplet()">
    <APPLET code="test.class" width="760" height="220" name="theApplet"
    archive="theSignedJar.jar" MAYSCRIPT>
    </APPLET>
    </BODY>
    </HTML>

    I am having a very similar problem in Netscape 6.2 or later. (It never occurs in Internet Explorer) The applet can contain a few or many (in the 1000's) of applet parameters.
    I am following the same pattern to determine when the applet is loaded (by referencing a flag that is set to true through the applet), which seems pretty standard. The applet is loaded, and the flag is set, but when I begin to process the parameters, the first parameter that is examined is returned as null, even though it is included as an applet parameter in the HTML file that is generated. FYI the first parameter processed is the last one included in the source file. The worst part about this error is that the error seems random. Sometimes it works; other times it doesn't.
    Has anybody ever seen documentation as to how the parameters are loaded into memory, i.e. in what order? Does anybody know the algorithm used by the runtime system to find a parameter when a call to getParameter() is made?
    Any insight would be greatly appreciated!

  • I play Farmville in Facebook, but when i use Firefox, this game doesnt load,but when I played Farmville in Internet Explorer...the game loads normally...so i wonder why Farmville doesnt load in Firefox...I've encountered this problem for 3 days...

    anyway, first i thought it may be due to Adopt Flash Player...so i did install a new update of Adopt Flash Player, but it still doesnt work at all...the game doesnt load....
    usually i played Farmville by using Firefox....but now i encountered that problem so i'd like to ask if you can help or give me the explanation why the game doesnt load in Firefox while it does load normally in Google crome or in Internet Explorer...thx

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 10.0 r32
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • 0FI_GL_14 Doesnt load Document num 970000xx series

    Dear All,
    I have an issue regarding to the FI_GL_14 extract.
    It doesnt load the Asset related douments which get posted via a program outside the standard Asset Module(not in a usual manner). The records appear in the FMGLFLEXA table in SE16, but when I do a INIT or Delta into BW it wont load the 97000xx series of documents.
    ECC6
    Infopackage Load parameter are FISCAL YEAR
    When I do a full load with Doc number selections 970000xxx-9799999xxx, it loads the data  correctly.
    My question is is there any problem with the extractor or do I need to do some setting??
    Any help would be higlhy appreciated.
    Thanks
    Rao

    Hi Suman,
    Thanks for your reply!
    I looked at the transformations and its all good.
    The data doesn't come into BW PSA in the first place, so there is something wrong with the 0FI_GL_14 extractor on the R/3 side which fails to pick 97xxxxx series documents.
    Regards
    Rao

  • How to get applet to load text file and use it

    The applet is loaded from my site and the short text file is updated by a perl script in my cgi-bin, which is called whenever someone loads the html that loads my applet.
    The text file is just a counter string and I'd like to use it to display #.gif's at a certain place on the applet window (no problem there if I can get the text file into the applet).
    How would I get the applet to load the text file into a string or array?
    It has a running thread and I'd like it to update it periodically.

    I believe you can do that with Class.getResourceAsStream.
    Or you can do it explicitly with java.net.* stuff.

  • My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?, My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?

    My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?, My gmail doesnt load on my macbook pro anymore, only able to fully load with the html version. Anyone share the same problem?
    It loads till the almost the end of the bar and just stops there.

    I'm having the same problem. It just freezes and wont load the rest of the way.

  • JVM crashed when applet is loaded in browser

    when applet is loaded in browser after some time JVM crashedwith hs error log.
    i am using
    JRE 1.6.0_10,
    1GB RAM,
    XP SP3,
    IE6
    Error log
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d02bd1d, pid=6032, tid=4772
    # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode windows-x86)
    # Problematic frame:
    # C [awt.dll+0x2bd1d]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #

    It appears from the following statement that a native code process failed when called by the jvm.
    The crash happened outside the Java Virtual Machine in native code.Not much more can be said. The cause does not appear to Java code.

  • Java applet wont load

    There is a website on our intranet that has a window in it that is written in java. The applet loads without conflict in Windows NT, but will not load in XP. I have loaded every Java Plug-in from 1.1.1 - 1.4.1_02. I need this applet to load in XP?????????

    honestly, i find XP rather java unfriendly myself. Thats why i think running c compilers on Unix is the most feasible solution , given that most computer students would have a unix or linux platform in their labs.
    regards,
    Joshua.
    With unix, all things are possible.

  • Java Applet Wont Load Past 80%

    Someone is running a java based paint chat off of their home system, so far all of us have been able to load it all the way, except for one person who can't seem to get the applet to load past 80%.
    She says she's got the latest update for OS X and she's gotten it to load before. She's tried updating Java and restarting her system. We don't think it's a firewall, seeing as other people can access it and she doesn't think she's running one.
    Any thoughts on what the issue could be would be greatly appreciated.

    Have her go to this Sun page and test her Java installation.
    http://java.com/en/download/help/testvm.jsp
    If there's no problem, she should look for a cause other than Java/applets.
    If there is a problem, the page has troubleshooting information.

Maybe you are looking for

  • Archlinux hanging on Thinkpad T60

    Hi, I recently installed archlinux on my thinkpad T60. It has hung twice during the last two days! The screen freezes, and the machine does not respond to any keys. My only option is to reboot. I have been using linux on this laptop for almost a year

  • JSP demo PTS included with Oracle 9i Developer Release for Mac not working

    Hello all, please pardon my ignorance, but I am an Oracle DBA not a JSP programmer. I have installed Oracle 9i developer release for Mac OSX and it included a demo application in JSP called pts. I followed all the instruction and it still doesn't see

  • How to Print the smartform repeatedly

    Hello Friends, Let me say, In my selection screen I am giving the label count as 5 and execute, I get a print options popup window where I can mention how many copies I need to print. If I mention 2 here, then I should get 2 sets of 5 labels to be pr

  • Delta Block R for invoice

    Hi All,    The user wants to know why for a particular line item in invoice, there is price varinace "X"(Blocked) because of which the invoice is showing Payment Block "R"(Delta Price Block). I have checked and found that for the two materials in PO,

  • Timebased workflow to update Status field

    Hi, Our requirement is to set status to 'Closed' after 15 days of opening an SR. Please let me know if any of you addressed similar requirement. Thanks in advance! m