JDK-4876825 : On Windows javap does not find classes on classpath unless in last entry
  • Type: Bug
  • Component: tools
  • Sub-Component: javap
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5
  • CPU: x86
  • Submitted: 2003-06-10
  • Updated: 2003-06-16
  • Resolved: 2003-06-16
Related Reports
Duplicate :  
Description
javap will not find classes that are on the classpath unless the class is in the last entry.
eg.
>javac -d c:\myclasses foo.java
>set classpath=c:\myclasses;%CLASSPATH%  //  where %CLASSPATH% is not empty
>javap foo
>ERROR:Could not find foo

however
>set classpath=%CLASSPATH%;c:\myclasses
>javap foo  
will succeed

Comments
WORK AROUND neither good... 1)ensure class you want is in entry on end of classpath 2) use -classpath option (but still, entry has to be the last)
11-06-2004

EVALUATION This is a problem with javap's processing of the classpath separators. ###@###.### 2003-06-16
16-06-2003