Results 1 to 9 of 9
  1. #1
    jon80's Avatar
    jon80 is offline Senior Member
    Join Date
    Feb 2008
    Location
    Malta (EU)
    Posts
    211
    Rep Power
    7

    Default [SOLVED] [newbie] javadoc

    I'm using the following command to try out compilation of java doc:
    javadoc com.horstmann.corejava

    However I've noted that when moving the javadoc files to another directory (e.g. to ..\doc) (because I can only run them from the \src directory for them to be successful), the html does not show up well.

    :confused:


    C:\Users\Administrator\workspace\PackageTest\src>j avadoc com.horstmann.corejava
    Loading source files for package com.horstmann.corejava...
    Constructing Javadoc information...
    Standard Doclet version 1.6.0_13
    Building tree for all the packages and classes...
    Generating com/horstmann/corejava/\Employee.html...
    Generating com/horstmann/corejava/\package-frame.html...
    Generating com/horstmann/corejava/\package-summary.html...
    Generating com/horstmann/corejava/\package-tree.html...
    Generating constant-values.html...
    Building index for all the packages and classes...
    Generating overview-tree.html...
    Generating index-all.html...
    Generating deprecated-list.html...
    Building index for all classes...
    Generating allclasses-frame.html...
    Generating allclasses-noframe.html...
    Generating index.html...
    Generating help-doc.html...
    Generating stylesheet.css...

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    What do you mean by "javadoc files", "run them", "to be successful" and "show up well"?
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  3. #3
    jon80's Avatar
    jon80 is offline Senior Member
    Join Date
    Feb 2008
    Location
    Malta (EU)
    Posts
    211
    Rep Power
    7

    Default

    When moving them to a different directory, the HTML frames etc show up but not all the pages are displayed; some of the files are generated within sub-directories within the /src sub-folder, and, it does not seem like "the thing to do" to have to move all of them where I need them i.e. to the parent directory within the ../doc sub-folder. Btw, the OS is Windows Server 2008 not UX.

    Screenshots http://cid-b712073b3513eb8e.skydrive...adoc-bugs.docx.

    I'll dig Javadoc documentation eventually, was looking for *pointers* :)

    J.

    Related links:

    http://java.sun.com/j2se/javadoc/
    http://java.sun.com/j2se/1.5.0/docs/...new-1.5.0.html
    Last edited by jon80; 05-11-2009 at 10:36 PM. Reason: update...

  4. #4
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    "The thing to do"? Did you try? All the HTML files will need to be under the same directory tree.

    And for the latest version you want
    http://java.sun.com/javase/6/docs/.../javadoc.html
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  5. #5
    jon80's Avatar
    jon80 is offline Senior Member
    Join Date
    Feb 2008
    Location
    Malta (EU)
    Posts
    211
    Rep Power
    7

    Default

    That's what I expected but as a matter of fact they are generated under a sub-directory, so I can't just move the files generated within '/src'; I'd have to look under the other sub-folders hunting about for other files e.g. html files. Doesn't sound too clean to me...

  6. #6
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    "Doesn't sound too clean"? Just move them or read the documentation you linked yourself to create them in the right place to start with.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  7. #7
    jon80's Avatar
    jon80 is offline Senior Member
    Join Date
    Feb 2008
    Location
    Malta (EU)
    Posts
    211
    Rep Power
    7

    Default

    thank you for picking..erm quoting so accurately on my words; I'm a bit tired today (that's a lame excuse I know)....

    my question is:

    is it possible to ask javadoc to create the files in the sub-directory that I want rather than "where it decides to generate them"?
    Last edited by jon80; 05-11-2009 at 11:16 PM.

  8. #8
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    You posted the links. RTFM
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  9. #9
    jon80's Avatar
    jon80 is offline Senior Member
    Join Date
    Feb 2008
    Location
    Malta (EU)
    Posts
    211
    Rep Power
    7

    Default

    Fair enough...I used:

    javadoc -d C:\Users\Administrat
    or\workspace\PackageTest\doc com.horstmann.corejava

    Source: javadoc-The Java API Documentation Generator

Similar Threads

  1. HOw to run ant javadoc
    By Manfizy in forum New To Java
    Replies: 24
    Last Post: 02-18-2009, 10:59 PM
  2. Javadoc-tool
    By tskumarme in forum New To Java
    Replies: 1
    Last Post: 05-30-2008, 02:31 PM
  3. JavaDoc
    By javarishi in forum Eclipse
    Replies: 1
    Last Post: 04-10-2008, 09:41 AM
  4. JavaDoc (method)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-04-2007, 11:48 AM
  5. what can I do with javadoc
    By christina in forum Advanced Java
    Replies: 1
    Last Post: 07-26-2007, 12:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •