Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


URGENT!  Applet loads in JBuilder8 and ApplerViewer but not in IE Browser!

Posted on 2003-02-19
Medium Priority
Last Modified: 2010-03-31
I'm using Java 1.4.1 and IE6.  I have the plug-in installed.
My files are all located in the same directory on the server.
My html looks like this:

<APPLET CODEBASE = "." CODE = "workDammit.class" WIDTH = "1000" HEIGHT = "550">

When I run my applet I get the following error in the java console:

load: class workDammit.class not found.

java.lang.ClassNotFoundException: workDammit.class

     at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:153)

     at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:168)

     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)

     at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)

     at java.lang.ClassLoader.loadClass(ClassLoader.java:255)

     at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:506)

     at sun.applet.AppletPanel.createApplet(AppletPanel.java:566)

     at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1775)

     at sun.applet.AppletPanel.runLoader(AppletPanel.java:495)

     at sun.applet.AppletPanel.run(AppletPanel.java:292)

     at java.lang.Thread.run(Thread.java:536)

Caused by: java.io.IOException: open HTTP connection failed.

     at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:252)

     at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:42)

     at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:143)

     at java.security.AccessController.doPrivileged(Native Method)

     at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:140)

     ... 10 more
Question by:niallers
  • 5
  • 3
LVL 86

Expert Comment

ID: 7982887
Make sure you're not reading outside the applet's document base and:

Are you sure *all* IO is being done by other means than Files?

Author Comment

ID: 7982946
By the way, it runs fine when I open it from my files on my pc.

Author Comment

ID: 7982977
I'm pretty sure alright.  I took out the line 'import java.io.File;' and it all compiled ok.

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

ID: 7983096
I have to go now (it's 7pm here) but I'll be back tomorrow morning for most of the day
LVL 86

Expert Comment

ID: 7989841
Where are you now? It may be that you have to post the code AND the html

Author Comment

ID: 7992719
My code and html are the same as what i posted in the other question ( Home >All >Topics >Programming >Programming Languages >Java >Applet Error) with any changes suggested added in.

Author Comment

ID: 7992725
I can post it all again if necessary though
LVL 86

Accepted Solution

CEHJ earned 80 total points
ID: 7995738
If you've made all the necessary changes, then i don't see why you shouldn't have it running. Better post the new code when you've checked it thoroughly.

Expert Comment

ID: 9059231
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month11 days, 23 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question