JDK-6343932 : Zip error from javac when classpath includes the name of a plain (non-class) file
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0u5
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: other
  • Submitted: 2005-10-31
  • Updated: 2010-04-02
  • Resolved: 2005-10-31
Related Reports
Duplicate :  
Description
OPERATING SYSTEM(S)
Windows XP
FULL JDK VERSION(S):
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode)
DESCRIPTION:
Create an empty file called "test"
Create a file called myCode.java containing:
    public class myCode
    {
    }
Run "javac -cp .;test myCode.java"
error: error reading test; error in opening zip file
1 error

Comments
WORK AROUND Remove the failing entries from the CLASSPATH.Alternatively, compile using the 1.4.2 JDK.
31-10-2005