can not run java program from command line which resides in package
- by kshitij
See following code with resides in fillowing directory
mypack.pack1
package mypack.pack1;
public class myclass
{
public static void main(String args[])
{
System.out.println("KKKKKKKKKKKKKKKKKKKKKKKKKKKKKK");
}
}
See following screen shot. that is giving error.
And i dont want to add anything in class path because i am in particular directory and it has to work.
why it is not working.??????