Hi Guys,
I am facing some problem regarding compilation of a class in a package.
I am trying to compile the below test.java file by using the command
javac -d classes src\com\example\web\test.java
but its not recognising Hello.java even though its compiled.
Please help me out as i got stuck up here.I attached the 2 files below
/**************test.java********************/
package com.example.web;
import com.example.model.Hello;
public class
Test {
public static void main(
String args[])
{
Hello t=new Hello();
t.calledMethod();
}
}
/***********Hello.java***********************/
package com.example.model;
public class Hello
{
public void calledMethod()
{
System.out.println("Hi im in the Called method");
}
}