can not run java program from command line which resides in package

Posted by kshitij on Stack Overflow See other posts from Stack Overflow or by kshitij
Published on 2012-07-02T09:04:57Z Indexed on 2012/07/02 9:15 UTC
Read the original article Hit count: 224

Filed under:
|
|

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.??????

enter image description here

© Stack Overflow or respective owner

Related posts about java

Related posts about command-line