Bug 319614 - Applet only works when run from Eclipse
Summary: Applet only works when run from Eclipse
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 blocker (vote)
Target Milestone: 3.7 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 13:20 EDT by Dean Wagstaff CLA
Modified: 2011-05-02 05:47 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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