|
chukxy
|
Please c an somebody in the house help me? I'm having problem running my applet in a browser. Can only run it with appletviewer. Suggestions will be welcomed. Thank you.
|
|
|
|
|
|
javaprince (m)
|
Lucky you am online, and would help u.
Create an html file in the folder where u have your class file and type this under the body tag of your HTML.
<APPLET CODE="Classname" WIDTH=200 HEIGHT=200>
</APPLET>
Let me know if it works. Also u might get a message on Internet Explorer askin if u want to run ActiveX / Applets . Click on it and then allow to run.
|
|
|
|
|
|
Bossman (m)
|
Which browser are you using and is it Java enabled? The easiest way to tell (without writing code in your applet or using Javascript to query it) is to visit one of the several websites the have an applet and see if your browsers JVM can run it. There are several test sites out there, google for it!
|
|
|
|
|
|
femu
|
You might need to sign your applet inorder to have necessary permissions.else it might not run
|
|
|
|
|
|
logica
|
the mere fact that you can ONLY view it in appletviewer could mean: - the applet wasn't properly written
- you didn't set the width and height in the html code
- you are using IE to try to view the applet. if you must view using IE, you have to stick to Java 1.1 if you are using the IE JVM (which most people do). if your applet was written in anything above 1.1, IE cannot be used to view the applet. You will have to use Mozilla or install the Sun JVM for IE.
- you don't have a JVM installed for your browser
|
|
|
|
|
|
chukxy
|
Thank you very much for the suggestions so far. The truth is that I can not run the programmer after implementing the suggestions. Please is there anything i can do to the browser in terms of configurationb to enable me run the applet. thanks.
|
|
|
|
|
|
javarules (m)
|
send your java and html code lets see
|
|
|
|
|
|
Bossman (m)
|
I agree. if you still can not get it to work with all the suggestions above, and you haveverified that your browser is "Java enabled" by visiting one of the several sites out there (see below) with an applet, then post your code. http://www.javatester.org/enabled.html
|
|
|
|
|
|