I am trying to execute a
java file using packages...but i am not successful in doing that..
I created a folder name (world) in C drive.. and the file name is Hello.java
The code in Hello.java is as follows
//Program starts from here
package world;
import java.io.*;
// package world;
public class Hello{
public static void main(
String args[]){
System.out.println("Hello WOrld");
}
}
C:\> set CLASSPATH=.;C:\;
C:\>cd world
C:\world> java world.Hello
i dont know what wrong i was doing here..I am new to this concept..can u check this