0 pts.
 Applet throws java.lang.NoClassDefFoundError whereas execution of Class does not
Hi, I generated a file test.class which I placed in following directory: D:ProgrammeJavamyClassesCLW My classpath looks like this: D:ProgrammeJavamyClasses;. Then I generated 2 files (both import CLW.*;), which call a function within my test.class: JavaTest.class and AppTest.class The first file is a java-Application which is executed by calling java, and works fine (returns value from function in test.class). The second is a java-Applet. When called in MSIE it returns: java.lang.NoClassDefFoundError: CLW/Test Since the java-Application works fine, I guess my classpath is OK. Why then, does the applet not work? Does MSIE not use the classpath? Thanks in advance.

Software/Hardware used:
ASKED: April 11, 2006  4:06 AM
UPDATED: April 12, 2006  10:46 AM

Answer Wiki:
Applets operate under many restrictions for security reasons. For one, they can only load class files from the server that the applet originates at, thus they can't pay attention to the user's classpath. Bill
Last Wiki Answer Submitted:  April 12, 2006  10:46 am  by  BillBB   0 pts.
All Answer Wiki Contributors:  BillBB   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _