Applet throws java.lang.NoClassDefFoundError whereas execution of Class does not

0 pts.
Tags:
Java
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.
ASKED: April 11, 2006  4:06 AM
UPDATED: April 12, 2006  10:46 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following