• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaDoc

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
When generating JavaDoc, it doesn't create any hyperlinks in the pages. For example:
when I use: @see java.text.DateFormat
I except to see a hyperlink in my html-pages to java.text.DateFormat.
However, it doesn't show as a hyperlink. When comparing the tags with the tags in the sources of Sun, I cannot see any difference in it. Still I do something wrong, since I don't see any links.
I am using Ant to generate the JavaDoc pages.
Any ideas what I am doing wrong?
Thnx.
Marcel
 
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
add this line when u run the jacadoc:
javadoc (blah blah blah) -link http://java.sun.com/products/jdk/1.4/docs/api/

with the link option you specify where is all those classes found and thats the place there are found on the internet. then u will get all the links (not only in the @see tag) but also in all the methods etc you inherit from other classes.
 
Marcel de Jong
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks,
that was exactly what I was looking for.
However, I used -linkoffline instead of -link
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
just out of curiosity why did you use linkoffline instead of link?
whats the diffrence?
 
Marcel de Jong
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I use -link it is trying to find package-list at the location you suggested (http://java.sun.com/products/jdk/1.4/docs/api/) Ant gives me an error fetching the URL.
With -linkoffline it does work.
I have found an excellent webpage about JavaDoc.
It is http://java.sun.com/products/jdk/1.2/docs/tooldocs/solaris/javadoc.html
[ May 30, 2002: Message edited by: Marcel de Jong ]
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic