Can Not Run My Applet In A Web Browser

A Member? Please Login  
type your username and password to login
Date: August 30, 2008, 07:54 AM
234942 members and 135091 Topics
Latest Member: Snuctliplic
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Can Not Run My Applet In A Web Browser
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Can Not Run My Applet In A Web Browser  (Read 104 views)
chukxy
Can Not Run My Applet In A Web Browser
« on: June 23, 2008, 07:59 AM »

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)
Re: Can Not Run My Applet In A Web Browser
« #1 on: June 23, 2008, 08:28 AM »

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)
Re: Can Not Run My Applet In A Web Browser
« #2 on: June 23, 2008, 02:28 PM »

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
Re: Can Not Run My Applet In A Web Browser
« #3 on: June 23, 2008, 03:06 PM »

You might need to sign your applet inorder to have necessary permissions.else it might not run
logica
Re: Can Not Run My Applet In A Web Browser
« #4 on: June 23, 2008, 06:53 PM »

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
Re: Can Not Run My Applet In A Web Browser
« #5 on: June 25, 2008, 07:49 AM »

 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)
Re: Can Not Run My Applet In A Web Browser
« #6 on: June 25, 2008, 03:22 PM »

send your java and html code lets see
Bossman (m)
Re: Can Not Run My Applet In A Web Browser
« #7 on: June 25, 2008, 03:58 PM »

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
 Can Anybody Help Me Out With The Synax For Groupbox And Tab Data Control.the   Need An Oracle Teacher?  Make Big Money It Is Free You Dont Spend A Cent, Www.tinyurl Dotcom/2d3dkk  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Job Talk Jobs/Vacancies (2) Career Talk Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.