How to attach docs for core java api? [message #178725] |
Tue, 07 November 2006 03:05 |
Eclipse User |
|
|
|
Originally posted by: amarillion.yahoo.com
I'd like to attach the api docs, downloaded from the sun website, so that
I can get instant access to the documentation e.g. by hovering over a
identifier with the mouse. This already works for the code that I write
myself, but I would like it for the core api as well.
Here is what I did thus far:
- Downloaded jdk-1.5.0-doc.zip from the sun website and copied the docs
directory to C:\Program Files\Java\jdk1.5.0_09\docs
- In eclipse, Window->Preferences->Java->Installed JRE's->Edit and then
set the javadoc location for each of the listed jar's to file://C:/Program
Files/Java/jdk1.5.0_09/docs/api. When I click the validate button, I get
"Location is likely valid", so that is good.
However, after these steps, I still don't see the inline documentation. Is
there an additional step that I'm missing?
Any help or pointers to additional documentation is much appreciated.
Martijn
|
|
|
Re: How to attach docs for core java api? [message #178733 is a reply to message #178725] |
Tue, 07 November 2006 04:09 |
Hoping White Messages: 71 Registered: July 2009 |
Member |
|
|
Try this
Window->Preferrence->Java->Installed JRE->
change the jre to your jdk, that's ok. JDK contains source code for java api
"Martijn van Iersel" <amarillion@yahoo.com>
??????:9abc634d4a2ab984ef8b53b7107eade0$1@www.eclipse.org...
> I'd like to attach the api docs, downloaded from the sun website, so that
> I can get instant access to the documentation e.g. by hovering over a
> identifier with the mouse. This already works for the code that I write
> myself, but I would like it for the core api as well.
>
> Here is what I did thus far:
> - Downloaded jdk-1.5.0-doc.zip from the sun website and copied the docs
> directory to C:\Program Files\Java\jdk1.5.0_09\docs
> - In eclipse, Window->Preferences->Java->Installed JRE's->Edit and then
> set the javadoc location for each of the listed jar's to file://C:/Program
> Files/Java/jdk1.5.0_09/docs/api. When I click the validate button, I get
> "Location is likely valid", so that is good.
>
> However, after these steps, I still don't see the inline documentation. Is
> there an additional step that I'm missing?
>
> Any help or pointers to additional documentation is much appreciated.
> Martijn
>
|
|
|
Re: How to attach docs for core java api? [message #178816 is a reply to message #178733] |
Tue, 07 November 2006 17:00 |
Eclipse User |
|
|
|
Originally posted by: amarillion.yahoo.com
> Try this
> Window->Preferrence->Java->Installed JRE->
> change the jre to your jdk, that's ok. JDK contains source code for java api
Sorry, but this doesn't help me further. When I do this, the javadoc
location for all the jar's listed point to an url on the sun website
(http://java.sun.com/j2se/1.5.0/docs/api/) NOT the location on my HDD. I
guess I could set it manually, but then I'm back where I started.
Note that I downloaded the javadoc in html format, NOT the source code. I
don't have that. Are you telling me that what I want is only possible
using the JDK source? If so, how can I get that?
|
|
|
Re: How to attach docs for core java api? [message #178847 is a reply to message #178816] |
Tue, 07 November 2006 18:29 |
Eclipse User |
|
|
|
Originally posted by: amarillion.yahoo.com
>> Try this
>> Window->Preferrence->Java->Installed JRE->
>> change the jre to your jdk, that's ok. JDK contains source code for java
api
>Sorry, but this doesn't help me further. When I do this, the javadoc location
>for all the jar's listed point to an url on the sun website
>(http://java.sun.com/j2se/1.5.0/docs/api/) NOT the location on my HDD. I
guess I
>could set it manually, but then I'm back where I started. Note that I
downloaded
>the javadoc in html format, NOT the source code. I don't have that. Are you
>telling me that what I want is only possible using the JDK source? If so, how
>can I get that?
I found the source code for the sdk on the sun website, and downloaded it
(all 55 Megs) and tried to attach it, but it still doesn't work. I don't
get the documentation I want when I hover over e.g. a class name like
"String". I checked and the source for String.java is definitely there
where I installed it, including javadoc annotation.
|
|
|
Powered by
FUDForum. Page generated in 0.08847 seconds