Forums Register Login

Applet in html page problem

+Pie Number of slices to send: Send
Hi,
I'm having trouble getting an applet to run in a html window. The html code used is exactly the same as one for a working applet, i don't really understand.

Is there a size limit of objects/files related to the applet or something like that that could cause the problem? (the folder has a little over 8mb)

The result i get is just the gray java window thing in the middle of the webpage, as if it's loading, but it never (ever) loads.

html code is just:


oh and the Shoot.class file is in the same folder as the html of course.
+Pie Number of slices to send: Send
If you wrote the applet using java 1.2 or higher, you may need to change your html to require the applet plug-in.
+Pie Number of slices to send: Send
In java's web site i.e. java.sun.com, u'll find an application called HTMLConverter. Download it. Now convert your html file into another html file using this HTMLConverter. It converts applet into objects (changes only the code of the Html file, not the java class file) and adds a plugin checker, so that whenever u run the html file, it checks for plugin. If its not there, it'll get from the java's site and bingo, ur applet will RUN.

Alternately, you may compile the applet specifically under JRE 1.1 conditions like this -

javac YourJavaFile.java -target 1.1

All the best.
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 718 times.
Similar Threads
Deploy applet in Tomcat
Making an Html file, I'm using Eclipse(Urgent)
applet problem w/ posted html
Jsp--Applet
Jsp--Applet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:50:56.