Web | This Site

Java Basics Examples
Java Tutorial
Java Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM

| Home |  | References |  | Discussion Forums |  | About TP

# Java Examples - compile a java file

## Problem Description:

How to compile a java file?

## Solution:

Following example demonstrates how to compile a java file using javac command.

    c:\jdk\demoapp> javac First.java

## Result:

The above code sample will produce the following result.

    First.java compile successfully.

Advertisement

Online Image Processing

Indian Baby Names