Home Answers Viewqa Java-Beginners error while running the applet

 
 


maverick
error while running the applet
1 Answer(s)      4 years and 5 months ago
Posted in : Java Beginners

View Answers

January 31, 2009 at 3:58 AM


Hi

Your program is correct but u have problem in running the program. You follow the following steps:

1. Save your file from MyFrame.java.
2. compile it from javac MyFrame.java
3. create a MyFrame.html file

copy the following code and paste there:

<HTML>
<HEAD>
</HEAD>
<BODY>
<APPLET ALIGN="CENTER" CODE="MyFrame.class" WIDTH="800" HEIGHT="500"></APPLET>
</BODY>
</HTML>

4. type the command: appletviewer Frametest.html on your command prompt.

You will be got definitily your output in a applet viewer.

Thanks...









Related Pages:
error while running the applet - Java Beginners
error while running the applet  import java.applet.Applet; import...); ++num; } } } } i have problem while running the code , error... is correct but u have problem in running the program. You follow the following steps
While running jsp
While running jsp  I found this error when i run the client.jsp can anyone help me javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://localhost:8080/WebService1/MyWebService?wsdl. It failed with: http
error while running a jsp page in netbeans
error while running a jsp page in netbeans  this is error that come under column "java db processes" in netbeans Exception in thread "main" java.lang.ExceptionInInitializerError
Im getting this error while running JPA project
Im getting this error while running JPA project  Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: examplePersistenceUnit] Unable to configure EntityManagerFactory
Applet Error - Applet
Applet Error  Hi... I had an application where i designed an applet to get the database values into the applet when i clicked a line... It works... Applet implements MouseListener{ boolean
Applet to database error - Applet
Applet to database error  Hi... I had an application where i need to connect to the database for the values to display in the applet.... Following... Applet implements MouseListener{ boolean rect1Clicked,rect1Clicked1,mouseEntered
error in compiling j2me apllication - Applet
"); } startStreaming(); while(running){ Thread.yield...error in compiling j2me apllication  hi, in my j2me application...; boolean running=false;//REPRESENT RUNNING STATE Thread streamingThread=null
error of HTTP Status 404 while running servlet on apache tomcat server
error of HTTP Status 404 while running servlet on apache tomcat server  i have followed the steps given here.Also hava put servlet-api in lib folder... the apache tomcat page. It mean that my tomcat server is up and running. but whn i
getting classnotfound exception while running login application
getting classnotfound exception while running login application  hi, I am getting Error creating bean with name 'urlMapping' defined... to bean 'loginController' while setting bean property 'urlMap' with key
exception in thread main while running servlet
exception in thread main while running servlet  I got exception in thread main no such method error while running servlet. I have added servlet.api.jar file in classpath.my classpath is C:\Program Files\Apache Software Foundation
applet running but no display - Applet
applet running but no display  Hai, Thanks for the post. I have... from a client, the page appears with a blank applet part (just whitescreen..., it is showing that the "Applet as1 started". Please help me to solve this issue
applet is running but no display
applet is running but no display  applet is running but no display.. its showing white screen with applet started
About running the Applet Program
About running the Applet Program  Hi I have composed an Applet Program and compiled the program, until that it is fine but how to run the Applet program(compiling i typed as javac AppletDemo.java)? Is compiling
About running the Applet Program
About running the Applet Program  Hi I have composed an Applet Program and compiled the program, until that it is fine but how to run the Applet program(compiling i typed as javac AppletDemo.java)? Is compiling
error while compiling - Java Beginners
error while compiling  i am facing problem with compiling and running a simple java program, can any one help me, the error i am getting is javac is not recognised as internal or external command  Check if you JAVA_HOME
java.lang.OutOfMemoryError - Applet
time.Now when i am running the applet "java.lang.OutOfMemoryError" error occurs.Any...java.lang.OutOfMemoryError  Sir, I am developing an applet game, in the initial state the applet runs very smoothly..All the animations running very
applet security error - Applet
applet security error  HI, Thanks for your reply. In the sample plugin code, the URL(nspluginurl) you have specified is for netscape navigator. ------------ ----------- Can you please tell me the same for IE url
Error running webservice
Error running webservice  Hi, I am getting following error: 05/10 12:45:46 ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error
disable keyboard in java applet
disable keyboard in java applet  How to disable key board of my client in an java applet embedded in a website while the applet is running.? Plz help
Clock Applet in Java
Java - Clock Applet in Java       Introduction Here is a sample of running clock provided by the java applet to illustrate how to use the clock in an applet. This program shows
Java Basic - Applet
Java Basic  My Applet Programs are Compiling as well as Running properly. But when I close the Applet window I am getting an Error Message as: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException and also 10
Java Compilation and running error - RMI
Java Compilation and running error   The following set of programs...); } catch(Exception e) { System.out.println("Error: " + e..."); } catch(Exception e) { System.out.println("Error:" + e); } try
Problem in show card in applet.
Problem in show card in applet.  The following link contained the card demo with applet. http://www.roseindia.net/java/java... but Not show card in the applet, then I add a code in paintComponent method like
applet security error - Security
applet security error  hi, i am using netbeans 6.0,apache tomcat server. I implemented the applet in my jsp page using plugin. when i execute my jsp page, the following security error occured. ERROR: Java Plug
Applet ... - Date Calendar
Applet ...  program to create an applet that displays d current time... ClockAppletDemo extends Applet implements Runnable { protected Thread...; timerThread = null; } //Show the time, and wait a while public void run
java compilation error - Applet
java compilation error  I am getting compilation error in the following code.: public void paint(Graphics g) { switch(screen...; } } Error is: Illegal start of expression Plz. find why am I getting this error
Applet in Eclipse - Running Applet In Eclipse
Applet in Eclipse - Running Applet In Eclipse... and run Applet in Eclipse IDE. In this section, you will learn how to run applet in Eclipse 3.0. An applet is a little Java program that runs inside a Web
Applet run with appletviewer but not in browser, any code problem.
Applet run with appletviewer but not in browser, any code problem.  Hi,My problem is when I am running my applet in appletviewer index.html, Its work...() { // loop until told to stop while (running
java compilation error - Applet
java compilation error  hi friends the following is the awt front design program error, give me the replay E:\ramesh>javac product.java Note: product.java uses or overrides a deprecated API. Note
jsp plugin implementation - Applet
classes inside the WEB-INF/classes folder. When i execute my jsp page, APPLET NOT INITED error displayed in my status bar. I opened the java console. The error... as myapplet, it is running perfectly and displaying the content what i need. In my
Applet versus Application
programming purpose while the applications don't have such type of criteria. Applet.... While in case of current applet it is not possible.  One more thing... while running the application then what have to be done. In this case we pass
java applet run time error - Applet
java applet run time error  Hi, Im new to java applet.please help me. i have create a MPEG movie player in applet. when i run that program it show the error that,"javax.media.NoPlayerException: Error instantiating class
Error While Compiling - Java Beginners
Error While Compiling  Hi All I Am a beginner and i face the following problem while compiling can anyone help me. C:\javatutorial\example> javac HelloWorld.java 'javac' is not recognized as an internal or external
MAin error
MAin error  Error while running hello program in another dir rather in bin. path is already set. java -version jdk1.6.0_24 no error while compilation but @ d tym of runnin error in main class is generated Exception in thread
Records are not inserting in to main table while running the mysql stored procedure.
Records are not inserting in to main table while running the mysql stored procedure.  Hi, Im migrating procedures from oracle to MySql.In that procedure records are not inserted into main table from temp table.But im getting msg
applet servlet communication - Applet
applet servlet communication  Can anybody tell me applet - servlet... project in eclipse and writing the applet code in ajava file which is present in src folder and a html in webRoot but when I am running this application it is showing
error
error  while iam compiling iam getting expected error
scrollbar - applet - Applet
ScrollbarDemo extends Applet { public void init() { Scrollbar sb = new... sending running code. import java.awt.*; import java.applet.*; public class ScrollbarDemo extends Applet { Scrollbar scrollbar; String s
how to run a applet from browser
how to run a applet from browser  hi, iam sending the code of an applet. it is working in cmd prompt,but not working from browser. <APPLET CODE... error. plz suggest me the related code to execute from browser. import
error
error  When I deploye the example I have this message cannot Deploy HelloWorld Deployment Error for module: HelloWorld: Error occurred during deployment: Exception while deploying the app [HelloWorld
applet printing
applet printing  i am making a frame in which i am calling three applets gridwise and in each applet i am drawing some graph so while printing whole frame i am able to print all 3 applets together on one page but in each applet i
Erron while
Erron while   Hi, i'm doing a project regarding xml. I want... with that data.Here is my coding and error showing on that coding.Could anybody help to know my error? coding: public class Test { public static void main(String
i got an error while compile this program manually.
i got an error while compile this program manually.  import javax.servlet.http.*; import org.apache.struts.action.*; public class ActionOne{ public...,struts jar files and i got an error in saveErrors() error Heading cannot find
Error while SQL Server connection to Java
Error while SQL Server connection to Java  import java.sql.*; public class OdbcSqlServerConnection { public static void main(String args[]) throws... this code, i am getting an error as OdbcSqlServerConnection.java:29: class,interface
Error while SQL Server connection to Java
Error while SQL Server connection to Java  import java.sql.*; public class OdbcSqlServerConnection { public static void main(String args[]) throws... this code, i am getting an error as OdbcSqlServerConnection.java:29: class,interface
Applet
Applet       Introduction Applet is java program that can be embedded into HTML pages. Java applets.... Applet is designed to run remotely on the client browser, so there are some
getting error while inserting values in database
getting error while inserting values in database  AddUser.java...) { out.println("An Error Had occurred while accessing the database..."); if (envContext == null)throw new Exception("Error: No Context
About running the Tomcat Server
About running the Tomcat Server   HI I want to run a simple program on servlet and the application is a simple program Hello world... on Submit button and the browser is showing an error like 404 the path servletDemo
Running and deploying Tomcat Server
Running and deploying Tomcat Server  HI Somebody has given the solution but it doesn't work out. kindly tell the solution for my problem which i... button and the browser is showing an error like Status 404 the resource
Java - Read file Applet
in the applet on the web browser or applet viewer. Full running Read File Example... Java - Read file Applet      ... of the reading file from an applet. This program illustrates you how an applet

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.