Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4332460

"Unable to access class file " during compilation.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.4.0
    • tools
    • None
    • generic
    • windows_98

      In win95 & win98 compiler gives an error if a class file is
       already present. It works fine in Win2000 and WinNT.
       
       Testing was done in JDK1.4.0beta-b10 build.
       
       Steps to reproduce the bug:
       --------------------------
       1. Set path to Merlin build JDK140-b08.
       2. Compile the file A.java.
       3. Make sure the class file A.class is present and compile again to get the
          error.
          
       Output:
      ---------
      >javac A.java

      A.java:18: cannot access B
      bad class file: C:\JDK1.4_LATEST\JRE\lib\rt.jar(java/lang/System.class)
      unable to acess file: .\B.class (The process cannot access the file because
      it is being used by another process)
      Please remove or make sure it appears in the correct subdirectory of the
      classpath.(source unavailable)
      1 error
        
       

            wmaddoxsunw William Maddox (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: