Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Images in Javadoc.

Name: Anonymous 2009-05-25 20:14

Here comes the simplest question of them all.

I want to include a picture in a Javadoc entry.  If I use an absolute path, it works fine.  If I use a relative path, nothing works.  I have to use a relative path since the sources I'm working on are shared across several computers.  Googling led me nowhere - most pages don't even mention pictures.

Is there something special pertaining to relative paths in Javadoc that I haven't taken into account?

Name: Anonymous 2009-05-25 20:51

Name: Anonymous 2009-05-25 20:52

PROTIP: Print the relative base directory and cf. with what you thought it was.

Name: Anonymous 2009-05-25 21:13

No idea.
I'm reading ``Human-Computer Interaction'' by Alan Dix.

Name: Anonymous 2009-05-25 22:39

>>4
*grabs Dix*

Name: Anonymous 2009-05-25 22:46

>>1
Look at the Javadoc in the source code for Sun's implementation of the Java class libraries.

Name: Anonymous 2009-05-28 23:08

OP here.

I had followed the instructions as specified in http://java.sun.com/j2se/javadoc/writingdoccomments/ beforehand - yet, somehow, it didn't work at all.  Didn't matter if I used the /doc-files/ convention or not - no matter how I put it, the image quite simply didn't show up at all unless I fed an absolute path.

I know this sounds silly and that something really small must be missing to complete the puzzle - but damned if I could find that piece...

Name: Anonymous 2009-05-28 23:24

You haven't said whether your doc-files directory was actually copied over to the documentation directory as it should. Check that, and check the produced HTML, and you had better fucking be enlightened, capisce?

Name: ​​​​​​​​​​ 2010-10-25 20:50


Don't change these.
Name: Email:
Entire Thread Thread List