cannot access String error while compiling th java program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suraj09
    New Member
    • Jan 2012
    • 1

    cannot access String error while compiling th java program

    c:\jv>javac check.java
    check.java:3:ca nnot access String
    bad class file:c:\jv\Stri ng.java
    file does not contain class String
    Please remove or make sure it appears in the current subdirectory of classpath

    The above screen appears in command prompt while compiling the program instead of setting the classpath and path.

    When I save the same program in any other folder and compile it then it gets compiled successfully.
Working...