Applet doesnt load

Advertisement
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?
Advertisement

Replay

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

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

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

My Firefox's doesnt load addons.Firefox 9

Firefox doesnt load addons tough they are enabled and compatible. I had 2 screens for a little time and after I removed one it started. These are the addons I have(bold ones seem to work): Auto Replay forYouTube1.9.2 Converter1.1.1 CountdownClock1.4.

Yahoo chess Applet not loading in Firefox

When I am at Yahoo Games, the pop up window for Chess opens, but never loads. I tried it in IE and it works fine - so the problem comes down to Firefox. When I click on a games room - and window pops up and asks to punch in a code (to avoid spam). Th

My stupid applet wont load :-(

hi! i made an applet for my java class and it's this funny game! :-O What's weird is when i "run applet" in the textpad program it loads up fine, but when i am outside of textpad and just try and open the html page in the program's folder the ap

Components and applet not loading when running the application using JVM1.3

I have my UI written in JavaScript.When I click a button,it opens a window showing the different components(images) and an applet containing a tree structure.The applet code is written in java This is working fine and the applet is loading properly w

Can I have an image as a back up in case flash doesnt load?

Hi, I was thinking....for all those people that come to my site - is it possible to have a back up image if the flash doesnt load? The current code is: <div id="mainBanner">           <div id="so1351">You will need flash to

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 sh

Touchsmart IQ506 DOESNT LOAD CHAT OR SOME GAMES

touchsmart IQ506 doesnt load chat or initialize gamesjimmyp wrote: like the farkle game on facebook aol chat Thank you for trying help me in advance That really doesn't help, it sounds like you're talking about web/browser/flash based games, I'd sugg

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 whe

Java Applet not loading

I am running an FTP server "Rumpus" and generally it works very well. It does FTP and FTP via HTTP. We use it as an internal FTP server within our company. However, there is a drag and drop feature that has stopped working on most clients that a

Java Applet not loading in Safari

Hi folks. I just noticed a problem with Safari on my Macbook Pro. I'm trying to use Keepvid to download videos from Youtube but it no longer works. I load then link into Keepvid and then get the message "Java Applet Loading..". Except that it re

ActionPerformed method not working when applet is loaded in browser window.

Hey there guys. I need urgent help from anybody who has experience in deploying websites whose code is in java. I am having two problems as mentioned below... first, I have made a simple login screen using java swing and JApplet. there is a single bu

Page content disappears as applet is loaded....

Hello All, Question 1: I have a webpage where I have a form. I ask user to input a few things in there, and as user press the submit button I pass this information to the embedded applet. However as soon as he presses the submit button, the form disa

Applet Security loading & running on local PC

I understnd the limits of an Applet loaded from a server to a local PC. What I am trying to do is test my Applet (JApplet actually) as I create it. I have some GIF and JPG files that need to be loaded from the same DIR that the JApplets HTML file is

Signed Applet not loading.

Hi all, Im currently using an applet that is signed. It works on java 1.4 but not on 1.6. Im not sure on hwo to make it work with 1.6 i tried the java control panel stuffs and the clearing my browser history stuffs too. I get this error from the cons

Applet not loading in different os

hi all, i have created an tree structure using applet for my website. the appplet is loading in all os except windows 2000professional and 2003 64 bit os.hi , thanks for ur question. i want to know the solution how to get my applet in windows 2000 pr

Using the internet on my iphone 4s is sooo slow it takes ages to load, sometimes it doesnt load at all and says connection has stopped responding...confused??

Just upgraded to the new iphone 4s about a week ago, to be honest ive never had sooo many problems with a phone before. Wen trying to use the safari browser it takes aages to load and i mean ages! sometimes it doesnt even load at all it says connecti

Java Applet not loading in Firefox preview

I am playing around with the classic Java applet "intel rotating 3d photo cube" and for some reason the applet won't load when I preview with Firefox. It works fine previewing in Safari and Opera and even works fine when I open the html file dir