Re: Xcode and Javadoc
Re: Xcode and Javadoc
- Subject: Re: Xcode and Javadoc
- From: Greg Guerin <email@hidden>
- Date: Thu, 19 Jul 2007 14:22:44 -0700
Jeff Dunnett wrote:
> I set/export the CLASSPATH in the .profileÂ
>
> export
>CLASSPATH=/System/Library/Frameworks:/Library/Java:/System/Library/Java:/Librar
>y
>/WebObjects/Extensions/
That classpath seems a little odd to me.
When you put a directory-name in the classpath, you're telling the JVM to
look in that directory for loose class files. Or if the class has a
package-name, as most do, you're telling it to look for a directory like
"com" or "org" that eventually leads to loose class files.
So, the odd thing is that there shouldn't be any loose class files, nor
their parent directories, in /System/Library/Frameworks. That Frameworks
dir should only hold frameworks.
Also, I think the dirs listed in the classpath can't end in "/". Your
/Library/WebObjects/Extensions/ ends in "/". (I could be misremembering
this rule, so if removing the trailing "/" doesn't fix anything, just
assume I'm wrong.)
> AddCatalogueItem.java:1: package com.webobjects.foundation does not exist
>...etc...
If AddCatalogueItem.java compiles on your machine, I recommend looking at
the classpath you use when you compile AddCatalogueItem.java. If that
contains a directory, use that directory in the CLASSPATH for 'javadoc'.
If it's a jar, use that jar in the CLASSPATH for 'javadoc'.
Because javadoc uses the Java compiler, it pretty much follows the same
kind of classpath rules as 'javac' does. So whatever works with 'javac'
should also work with 'javadoc', in general.
If you don't know what classpath is being used with 'javac', look in the
detailed build transcript of the compilation for this line:
/usr/bin/javac ...
It will be a very long line, but look for the -classpath ... option, and
copy/paste that classpath. Or look above it and use the same expression
that produces the classpath value.
The /usr/bin/javac line should be below the line:
JavaCompile.default ...
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden