Java compiler unable to read starteam-extensions.jar. giving error "filename too long"

0 Likes

Problem:

Java compiler unable to read starteam-extensions.jar. giving error "filename too long"

Resolution:

  • Product Name: StarTeam
  • Product Version: 2006 R2/2008
  • Product Component: SDK
  • Platform/OS Version: Windows XP

    Description:
    java compiler unable to read starteam-extensions.jar. giving error "filename too long"

The java 1.5 compiler does not work if "c:\Program Files\Borland\StarTeam Cross-Platform Client 2006 R2\starteam-extensions.jar" is in the CLASSPATH on windows.
The following error will occur:

C:\>javac test.java
error: error reading d:\Program Files\Borland\StarTeam Cross-Platform Client 200
6 R2\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.
\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.\.
\.\.\.\.\.\.\.\.\.\.\.\.\.\.\ri_swing.jar; Filename too long


Answer/Solution:

Issue lies in java compiler. According to SUN website http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6400872 there was a bug in 1.5 java compiler (to reference the jar files in Manifest.mf).This is fixed in later release (for example error doesn’t occur if compiled with java version "1.6.0_01")


Author: Praveen Boyeneni

Old KB# 28834
Comment List
Related
Recommended