Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / May 2004

Tip: Looking for answers? Try searching our database.

Issues with Javadoc

Thread view: 
Elspeth Thorne - 17 May 2004 10:35 GMT
Hi,

I'm trying to document my package. It contains elements from Struts 1.1, and
Junit, as well as the standard java libraries.

When I run javadoc:

javadoc *.java

it gives me quite a few warnings, essentially not recognising any of the struts
calls.

I think it's a classpath problem, but I'm not sure.

Here is some output:

Constructing Javadoc information...
RequestAction.java:20: package org.apache.struts.action does not exist
import org.apache.struts.action.Action;
                                ^
RequestAction.java:21: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionForm;
                                ^
RequestAction.java:22: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionForward;
                                ^
RequestAction.java:23: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionMapping;
                                ^

Any assistance would be appreciated.

Regards,

Elspeth Thorne.
Michael Amling - 17 May 2004 02:49 GMT
> I'm trying to document my package. It contains elements from Struts 1.1,
> and Junit, as well as the standard java libraries.
[quoted text clipped - 14 lines]
> import org.apache.struts.action.Action;
>                                 ^

  Is there an org.apache.struts.action.Action class in the CLASSPATH
that's in effect when you run javadoc? If not, you need to add it to
your CLASSPATH.

--Mike Amling
Elspeth Thorne - 17 May 2004 11:02 GMT
>> I'm trying to document my package. It contains elements from Struts
>> 1.1, and Junit, as well as the standard java libraries.
[quoted text clipped - 20 lines]
>
> --Mike Amling

Unless javadoc is using a different classpath from than that revealed by 'env' -
it's in there all right. This is why I'm somewhat confused.

Elspeth.
Michael Amling - 17 May 2004 04:00 GMT
>>> I'm trying to document my package. It contains elements from Struts
>>> 1.1, and Junit, as well as the standard java libraries.
[quoted text clipped - 20 lines]
> Unless javadoc is using a different classpath from than that revealed by
> 'env' - it's in there all right. This is why I'm somewhat confused.

  To prove that org.apache.struts.action.Action is in the CLASSPATH, try

     java org.apache.struts.action.Action

If you get an error message saying that Action has no method 'main',
that proves that the class is on the CLASSPATH, in which case I'd wonder
if your javadoc command has specified -classpath and/or -bootclasspath.

--Mike Amling


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.