on 09-13-2004 9:31 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.