whenever i try to make a java applet .. i have experience one problem .. if i try to run my program from appletviewer command it works fine and shows everything .. but when i try to run it from the internet explorer it says .. cant find the class file although it is in the same directory as the .html file is
now another thing i wanna ask is that like if i have a java program named MyApplet.java and i use anonymous classes in it .. it makes like
MyApplet$1.class
MyApplet$2.class
. . . .
and so on
now these class files are required to run this program .. if i want to upload them to a server e.g. on geocities it doesnt let me upload these $ named files .. and without that this java applet doesnt works ,,
so wat can be the solution ?
java applets
Re:java applets
I can't help you much with the first question, offhand; if you could post you're HTML code, it may help in working it out.
As for the second issue, the solution is to make the files int a JAR Java Archive) and call the main function from it. I don't recall the details of doing this offhand (and I don't know what implementation you are using), and am a bit short on time, so I can't give more information on it right now. It should be possible to look up on the web or in a reference book. I'll see if I can find it when I get back later, if you still need any more information.
As for the second issue, the solution is to make the files int a JAR Java Archive) and call the main function from it. I don't recall the details of doing this offhand (and I don't know what implementation you are using), and am a bit short on time, so I can't give more information on it right now. It should be possible to look up on the web or in a reference book. I'll see if I can find it when I get back later, if you still need any more information.
Re:java applets
well i got the idea from wat u r saying .. that can be the solution ..
thanx for ur help
but my first question is still there ?
thanx for ur help
but my first question is still there ?