.:Welcome to our Java tutorials:.

Visit our Web design support Forum

by April Griffin

Nov 4, 2002

Your First Application  "Lamers Suck"

 

Type EVERYTHING. The Java compiler  is case-sensitive, follow the code exactly.

Lets Begin.

Open Notepad. 

Select new Document

Type this exactly as it is shown here 

/**
 * The LamersSuckApp class implements an application that
 * displays "Lamers Suck!" to the standard output.
 */
public class LamersSuck {
    public static void main(String[] args) {
        // Display "Lamers Suck!"
        System.out.println("Lamers Suck!");
    }
}
  • Select save as under file in notepad and save as this exactly including the quote marks "LamersSuckApp.java",  file type is text. Close the file now.

 

  • open MS-DOS  application. 

  • change your current directory to the directory where LamersSuckApp.java" is listed. 

  • You will see your file listed in the directory.

  • At the DOS prompt type javac LamersSuckApp.java and hit enter.

  • The compiler will make a Java bytecode file, LamersSuckApp.class.

  • Now type java LamersSuckApp. Hit Enter.

  • You will see the words Lamers suck! in Dos.

  • You just created Java application 

 

In the next lesson we will create a Java applet for the web

 

 




   


EmpireSponsor .:is offering Awesome fully loaded Hosting starting at 5$ 500-2056 Megs PHP! CGI! ASP! SSL Secure Server SQL!
 

 

.:Tutorials:.

HTML
CSS
Javascript
Java
Flash
PSP
Support Forum
 

.:Tools:.

Free Search Engine Submission
Meta tag generator
 

.:Tests:.

CSS validator
HTML validator
Website Garage
HTML Doctor
 
.: Search :.
Need To Find Something Fast?
© 2002-2003 Empireezine.tripod.com