JDK: External version 6, Internal version 1.6.0 update 25
Error while running command for compiling source files
Command:
javac ShirtTest.java
ShirtTest.java:5: cannot find symbol
symbol : class Shirt
location: class ShirtTest
Shirt myShirt;
^
ShirtTest.java:6: cannot find symbol
symbol : class Shirt
location: class ShirtTest
myShirt = new Shirt();
^
2 errors
Error while running command for compiling source files
Command:
javac ShirtTest.java
ShirtTest.java:5: cannot find symbol
symbol : class Shirt
location: class ShirtTest
Shirt myShirt;
^
ShirtTest.java:6: cannot find symbol
symbol : class Shirt
location: class ShirtTest
myShirt = new Shirt();
^
2 errors
Resolution:
I had added System Environment variable as 'CLASSPATH' and set value as "C:\Program Files\Java\jdk1.6.0_25\jre\bin". Removed this system environment variable.
No comments:
Post a Comment