Web | This Site

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

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

# Java Examples - Destination of class file

## Problem Description:

How to set destination of the class file?

## Solution:

Following example demonstrates how to set destination of the class file that will be created after compiling a java file using -d option with javac command.

    c:> javac demo.java -d c:\myclasses

## Result:

The above code sample will produce the following result.

    Demo application executed.

Advertisement

Online Image Processing

Indian Baby Names