Menu

#3 Bad CLASSPATH on Win32

open
None
5
2001-04-28
2001-04-26
No

As reported in my comment to Bug #418698, the ./configure
script now works "out of the box" on my WinNT system when
using the latest Cygwin distribution.

However, 'make' runs into problems because the java
compiler is provided with a bad CLASSPATH. Full trace is
attached, here is the critical region:

CLASSPATH=/cygdrive/d/java/jdk1.3/lib/tools.jar:../source:./../source:$CLASSPATH
/cygdrive/d/java/jdk1.3/bin/javac -d ../source HtmlParser.java Toolkit.java TexiDoclet.java
Texi.java TexiMenu.java NameComparator.java QualifiedNameComparator.java TexiElement.java
TexiChapter.java TexiContainer.java TexiNode.java TexiFile.java TexiHTML.java TexiPlain.java
TexiFormatPara.java TexiTable.java TexiExample.java TexiRef.java TopNode.java PackageNode.java
ClassNode.java MemberMenu.java FieldNode.java ExecutableNode.java HeritagePara.java
UnknownNodeException.java JavadocWrapper.java ClassSerialNode.java PostProcessor.java
Alignment.java TexiIndex.java IndexNode.java TreeNode.java PathChecker.java
JtxdBrowseNode.java JtxdNode.java JtxdSourceNode.java TexiText.java Driver.java
ConfigurationTexiDoclet.java

Two problems: most importantly, the path to 'tools.jar' is
provided using the Cygwin Unix notation. This won't work
because the Java environment can't deal with this type
of absolute path notation. Instead, the first element of
CLASSPATH should be: d:/java/jdk1.3/lib/tools.jar.

As you can see in the trace, I did provide the JDK path
using the standard Windows notation:
//BLOCK/.../texidoclet-0.5 $ ./configure --with-jdkdir=d:/java/jdk1.3

But the configure script seems to translate this spec to
Cygwin notation at some point.

The second problem is that the CLASSPATH spec shown above contains
an element "$CLASSPATH". Of course I expect that the intent is to insert
the previous content of the CLASSPATH environment variable at this
point. This doesn't seem to work (and this is strange, because I ran both
'./configure' and 'make' under a Cygwin bash, which should be able to
interpret the Unix envvar reference style using the dollar sign.)

In case it helps: the Windows way of referencing an envvar is %CLASSPATH%
instead of $CLASSPATH.

Discussion

  • Julian Scheid

    Julian Scheid - 2001-04-28
    • assigned_to: nobody --> jscheid
     
  • Julian Scheid

    Julian Scheid - 2001-04-28
    • assigned_to: jscheid --> alexl
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.