Date: Thu, 19 Jul 2007 09:26:28 -0700 Subject: Re: Xcode and Javadoc Content-Type: text/plain; charset="us-ascii"
Jeff Dunnett wrote:
javadoc *.java open index.html exit 0
The shell is expanding *.java. You probably want javadoc itself to expand it. To do that, quote the wildcard _expression_: javadoc '*.java'
Ok I have done that although it has no affect on the problem.
You may also want to review the javadoc man page for details about how it deals with particular naming patterns of source files. Javadoc's treatment of file-names is more subtle than typical commands.
To open a man page in Xcode, choose "Open man page..." from Xcode's Help menu. The javadoc man page is long and complex enough that it should be read with some care.
I have taken a long look and tried a few things. I have not found any solutions here unfortunately.
Perhaps the CLASSPATH is not set somewhere.
If you don't set CLASSPATH somewhere, then it won't be set. Are you setting CLASSPATH? If so, where? Are you exporting it? Is a CLASSPATH necessary in order for javadoc to operate with your *.java files?
I set/export the CLASSPATH in the .profile
export CLASSPATH=/System/Library/Frameworks:/Library/Java:/System/Library/Java:/Library/WebObjects/Extensions/
I am not sure if the CLASSPATH necessary to operate with my *.java files. Javadoc generates the documents from my *.java files. The thing is when I run javadoc I get error messages that seem to indicate that it is having trouble reading some of the classes like com. webobjects.eocontrol and com.webobjects.foundation. For example the error messages look like:
AddCatalogueItem.java:1: package com.webobjects.foundation does not exist AddCatalogueItem.java:2: package com.webobjects.appserver does not exist AddCatalogueItem.java:3: package com.webobjects.eocontrol does not exist AddCatalogueItem.java:4: package com.webobjects.eoaccess does not exist AddCatalogueItem.java:5: package org.apache.log4j does not exist AddCatalogueItem.java:8: cannot find symbol AddCatalogueItem.java:9: cannot find symbol Session.java:1: package com.webobjects.foundation does not exist Session.java:2: package com.webobjects.appserver does not exist Session.java:3: package com.webobjects.eocontrol does not exist Session.java:4: package org.apache.log4j does not exist Session.java:5: package com.reportmill.base does not exist Session.java:12: cannot find symbol Catalogue.java:1: package com.webobjects.foundation does not exist Catalogue.java:2: package com.webobjects.eocontrol does not exist Catalogue.java:3: package com.webobjects.appserver does not exist CatalogueParent.java:4: package com.webobjects.foundation does not exist CatalogueParent.java:5: package com.webobjects.eocontrol does not exist CatalogueParent.java:9: cannot find symbol AdminCatalogueList.java:1: package com.webobjects.foundation does not exist AdminCatalogueList.java:2: package com.webobjects.appserver does not exist AdminCatalogueList.java:3: package com.webobjects.eocontrol does not exist AdminCatalogueList.java:4: package com.webobjects.eoaccess does not exist AdminCatalogueList.java:5: package org.apache.log4j does not exist AdminCatalogueList.java:8: cannot find symbol AddCatalogueItem.java:19: cannot find symbol AddCatalogueItem.java:33: cannot find symbol AddCatalogueItem.java:53: cannot find symbol Session.java:16: cannot find symbol
All of the cannot find symbol errors are referring to classes that are part of the packages it says don't exist (i.e. WOApplication). While it is producing javadocs for my classes. I am guess that I should be getting these errors.
I really appreciate the help.
Jeff
|