Gangadharan
Compiling Error
2 Answer(s)      5 years ago
Posted in : Java Beginners
cant able to compile java servlet file in the command prompt? WHY?
but i can compile normal java file

give me answer to fix my problem.
Advertisement
View Answers

February 2, 2012 at 10:35 PM


import java.awt.*;
import javax.swing.*;

public class TextFonts extends JApplet
{
   public void paint ( Graphics g )
   {
       super.paint( g );
       g.drawString ("Hello World", 0, 10);
       Font small = new Font( "Serif", Font.PLAIN, 8 );
       g.setFont( small );
       g.drawString (*Java rocks", 0, 50 );
       g.drawstring ("Hiya", 60, 15 );
                    // font stays the same until we call setFont again
       Font big = new Font( "SansSerif", Font.BOLD + Font.ITALIC, 36 );
       g.setFont( big );
       g.drawString ( "Skiing is fun", 50, 50 );
   {
{


February 2, 2012 at 10:36 PM


public class TextFonts extends JApplet {
public void paint ( Graphics g ) { 
super.paint( g ); 
g.drawString ("Hello World", 0, 10);
Font small = new Font( "Serif", Font.PLAIN, 8 ); 
g.setFont( small );
g.drawString (*Java rocks", 0, 50 );
g.drawstring ("Hiya", 60, 15 ); 
// font stays the same until we call setFont again Font big = new Font( "SansSerif", Font.BOLD + Font.ITALIC, 36 );
g.setFont( big );
g.drawString ( "Skiing is fun", 50, 50 );

{ {









Related Tutorials/Questions & Answers:
Compiling Error - Java Beginners
Compiling Error  cant able to compile java servlet file in the command prompt? WHY? but i can compile normal java file give me answer to fix my problem
Compiling Error - Java Beginners
Compiling Error  cant able to compile java servlet file in the command prompt? WHY? but i can compile normal java file give me answer to fix my problem.  Hi Friend, Do you have servlet-api.jar in the lib folder
Advertisements
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
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
error in compiling j2me apllication - Applet
error in compiling j2me apllication  hi, in my j2me application for video,m getting only the audio.i ll send the code. package src.video_streaming; import javax.microedition.media.Manager; import
i have got error while compiling simple tag handler
i have got error while compiling simple tag handler   javac.servlet.jsp not found! tell me what are the jar files required to run simple tag handler...;it is : javax.servlet.jsp only but getting error wt is reason
program not compiling
program not compiling  Hello can you help me with this program,I am trying to add a loop at the end of the program but it is not compiling,thank you. import java.util.*; import java.text.*; class HardwareItems { String code
compiling .class files
compiling .class files  how do i compile .class files using eclipse
Compiling package in command line
Compiling package in command line  Hi friends, i am totally new to java programming, i am basic learner in java. My query is, How to compile java... how to compile it. Thanks & Regards, Sham   Compiling Java
Compiling a Servlet - JSP-Servlet
Compiling a Servlet  Respected sir, I just want to know how to compile a servlet coding? I need it in a sequential way so that I can understand it at the very first time as I am new to this technology
compiling programme IJVM
compiling programme IJVM  I TRY AND COMPILE THE PROGRAMME BELOW BUT HAS ERROR APPEAR ALL THE TIME,,CAN ANYONE CORRECT THE CODE AND WRITE UP THE NEXT METHOD FOR POWER IN THE PROGRAME AS WELL...URGENT // Program to read two single
error
error  while iam compiling iam getting expected error
process of compiling and running java program
process of compiling and running java program  Explain the process of compiling and running java program. Also Explain type casting
compiling a uploaed java file - JSP-Servlet
compiling a uploaed java file  How a uploaded java source file is automatically compiled(i.e converted to .class file) in server using jsp/servlet
Compiling and Interpreting Applications in Java
Welcome to Java tutorial series. In this lesson, you will learn about following topics: Compiling Java Program Interpreting Java Program Compiling Java Program For compiling Java program, first your code must write
Compiling and Running Java program from command line
Compiling and Running Java program from command line - Video tutorial... of compiling and running java program from command line. We have also video... the process of compiling and running the Java program from command prompt
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
Error
Error  I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower
error
error
error
error  java.lang.unsupportedclassversionerror:bad major version at offset 6 how to solve this????   Hi, Please check the version of framework used and also the JDK version. This type error also comes when java file
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
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5