Bug 319614

Summary: Applet only works when run from Eclipse
Product: [Eclipse Project] JDT Reporter: Dean Wagstaff <dwagstaff>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: blocker    
Priority: P3 CC: amj87.iitr, daniel_megert, jarthana, Olivier_Thomann
Version: 3.7   
Target Milestone: 3.7 M1   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Dean Wagstaff CLA 2010-07-12 13:20:10 EDT
Build Identifier: 20100218-1602

I created an applet which runs fine if executed from eclipse using the applet viewer.  If however I create an html file and run it from there I either get a NoClassDefFoundError.  Here is what I am trying to do.  I have a directory sites/MLD which contains the html file with the embedded applet.  I have copied the class file into the same directory as the html file but it doesn't load.  The only way I have gotten it to work is to copy the html file into the same workspace directory as the eclipse bin directory - so my question is what do I need to do to get those class files in the sites/MLD directory to work with html file.  

Reproducible: Always
Comment 1 Jay Arthanareeswaran CLA 2010-07-13 01:42:51 EDT
You have to ensure that all the required .class files are included in the "codebase" attribute. Going by the NoClassDefFoundError, I suspect the main class is picked up but a referenced class file or library hasn't been found.

Can you check if the class reported in the NoClassDefFoundError is available in the folder (in appropriate package) where you have the HTML file?

This doesn't look like an eclipse problem.
Comment 2 Dani Megert CLA 2010-07-13 03:14:23 EDT
This "bug" rather looks like a question. Bugzilla is used to report bugs. Please use the newsgroups (eclipse.tools.jdt in this case) to ask questions like this.

If you still think it is a bug in Eclipse then you should provide more details, e.g. your example and/or steps to reproduce.
Comment 3 Olivier Thomann CLA 2011-01-25 11:19:51 EST
Verified.
Comment 4 Ayushman Jain CLA 2011-05-02 05:47:10 EDT
Verified for 3.7RC0