cancel
Showing results for 
Search instead for 
Did you mean: 

Java Help

Former Member
0 Kudos

Hi all,

I have written a Java Applet using eclipse which works fine when executed via the eclipse software, but when copy the .class file to another directory and try to run it using the <APPLET> tag in html it will not run.

I think it is somthing to do with it not being able to find somthing it needs from within the new directory, because if I then copy the html file back into the eclipse directory( where the .class originated from)and execute it, it works fine.

Can anyone tell me what i need to do to get it to work in any directory.

Thanks in advance

Mart

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Mart,

you have to make sure that the class(es) can be found within the right directory. To understand the process where the server looks for the applet and the class(es), please read http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html and within this, especially the paragraph "Specifying the Applet Directory".

Hope it helps

Detlev

Former Member
0 Kudos

DOH!, Thanks for the reply but i have found my problem. I forgot to copy a .class file for an applet i had already created and was using in my new class.

Thanks again

Mart

Answers (0)