ishani sharma wrote:hello...
i wrote a java program which imports another classname from a different package,
but when am compiling the program from cmd it says package doesnot exist(the imported one).
Can you please tell me the possibilities where i cud be wrong...
i am trying since yesterday but cant figure it out:rolleyes:
Can you post the exact error message and also how you invoked the java compiler command? The class you are trying to use should be in your classpath. So you need to use the
-cp or
-classpath command along with the javac command.
And also let us know if you have set the classpath variable in the environment variables?