I have Created the two fi les:
■ C:\temp\packagea\ClassA.java
■ C:\temp\packageb\ClassB.java
-------------------------------------------------
------------------------------------
---------------------------------
Then type this command:
cd C:\temp
and then I compile code using
javac packagea/ClassA.java packageb/ClassB.java
but when i am trying to execute using following command
java packagea.ClassA
it gives error like COULD NOT FIND OR LOAD MAIN CLASS.
My question is command to execute which is mentioned above is correct or why it gives such error ?can anybody explain?