Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Javadoc in eclipse offline?(eclipse javadoc)
Javadoc in eclipse offline? [message #539502] Fri, 11 June 2010 05:31 Go to next message
LeonLanford  is currently offline LeonLanford Friend
Messages: 5
Registered: June 2010
Junior Member
Hi I just started using eclipse few days ago. Yesterday I have problem with javadoc in eclipse.

By javadoc I mean the helping document that explains each of suggestion appear.

Usually when I type like this

JPanel javapanel;
javapanel.  //when I press . usually appears suggestions


When I'm online, there's explanation for each of the suggestions. It's called javadoc, am I right?

But yesterday my internet connection went offline, I noticed that the javadoc is not appearing.
Is eclipse downloading javadoc not storing in the database?

I use netbeans before so I tested using netbeans. It works fine even in offline internet connection.

Is there something I must do in order to make the javadoc appear?
I searched with google and only found how to generate javadoc but I found someone with same problem with me here
http://forums.sun.com/thread.jspa?threadID=756994

Sorry I don't know how to explain well, how someone can help me.
Thanks

Re: Javadoc in eclipse offline? [message #539582 is a reply to message #539502] Fri, 11 June 2010 12:05 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
LeonLanford wrote:
> Hi I just started using eclipse few days ago. Yesterday I have problem
> with javadoc in eclipse.
>
> By javadoc I mean the helping document that explains each of
> suggestion appear.
>
> Usually when I type like this
>
>
> JPanel javapanel;
> javapanel. //when I press . usually appears suggestions
>
>
> When I'm online, there's explanation for each of the suggestions. It's
> called javadoc, am I right?
Right. You need to download the source and/or the Javadoc to a local
drive and then change the source and/or Javadoc location of the rt.jar
to that location.

Dani
>
> But yesterday my internet connection went offline, I noticed that the
> javadoc is not appearing.
> Is eclipse downloading javadoc not storing in the database?
>
> I use netbeans before so I tested using netbeans. It works fine even
> in offline internet connection.
>
> Is there something I must do in order to make the javadoc appear?
> I searched with google and only found how to generate javadoc but I
> found someone with same problem with me here
> http://forums.sun.com/thread.jspa?threadID=756994
>
> Sorry I don't know how to explain well, how someone can help me.
> Thanks
>
>
Re: Javadoc in eclipse offline? [message #539627 is a reply to message #539582] Fri, 11 June 2010 14:35 Go to previous messageGo to next message
LeonLanford  is currently offline LeonLanford Friend
Messages: 5
Registered: June 2010
Junior Member
Dani Megert wrote on Fri, 11 June 2010 08:05
LeonLanford wrote:
> Hi I just started using eclipse few days ago. Yesterday I have problem
> with javadoc in eclipse.
>
> By javadoc I mean the helping document that explains each of
> suggestion appear.
>
> Usually when I type like this
>
>
> JPanel javapanel;
> javapanel. //when I press . usually appears suggestions
>
>
> When I'm online, there's explanation for each of the suggestions. It's
> called javadoc, am I right?
Right. You need to download the source and/or the Javadoc to a local
drive and then change the source and/or Javadoc location of the rt.jar
to that location.

Dani
>
> But yesterday my internet connection went offline, I noticed that the
> javadoc is not appearing.
> Is eclipse downloading javadoc not storing in the database?
>
> I use netbeans before so I tested using netbeans. It works fine even
> in offline internet connection.
>
> Is there something I must do in order to make the javadoc appear?
> I searched with google and only found how to generate javadoc but I
> found someone with same problem with me here
> http://forums.sun.com/thread.jspa?threadID=756994
>
> Sorry I don't know how to explain well, how someone can help me.
> Thanks
>
>


Hi, thanks for replying.
Can you tell me where to change the javadoc location? Is it in properties->javadoc location? I thought it's location to export javadoc?

A person here said that too
Quote:
In Eclipse 4.5 Galileo, the place you're looking for is probably under the project's Properties -> Javadoc location, but that's for the generated Javadoc.
This is wrong, actually. For 3rd party projects, you need to go to Package Explorer -> References Libraries and access the Properties of the JAR you imported. There, you have a Javadoc Location.

I've just tested this with Apache HttpComponents Client.



But I cannot find where's package explorer.

And the last, if netbeans can show the javadoc offline means that I already have javadoc downloaded somewhere? I cannot find any javadoc in netbeans directory..


[Updated on: Fri, 11 June 2010 14:36]

Report message to a moderator

Re: Javadoc in eclipse offline? [message #539770 is a reply to message #539502] Sat, 12 June 2010 19:51 Go to previous messageGo to next message
LeonLanford  is currently offline LeonLanford Friend
Messages: 5
Registered: June 2010
Junior Member
anyone? Sad
Re: Javadoc in eclipse offline? [message #539773 is a reply to message #539770] Sat, 12 June 2010 21:08 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 6/12/2010 1:51 PM, LeonLanford wrote:
> anyone? :(

"Bumping" the forum is useless. We're all eager to answer every question
that comes along, each according to his capacity and knowledge. If your
question hasn't been answered, it simply means no one who knows has read
it yet. Bumping it may do little more than annoy forum users.
Re: Javadoc in eclipse offline? [message #539774 is a reply to message #539627] Sat, 12 June 2010 21:16 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 6/11/2010 8:35 AM, LeonLanford wrote:
> [snip]
>

Let me take a stab at answering this question.

First, I'm not certain which sorts of things you're looking to get hints on.

If it's third party stuff, say a class out of a Hibernate or some such
JAR, there is a way to "hook up" the Javadoc. If this is the case, or
something close to it, please examine
http://www.javahotchocolate.com/tutorials/jars.html, particularly
Appendix D: Setting up a third-party library. This will show you how to
wire up source code or Javadoc so that, from your Eclipse code editor,
you can hover over a symbol to see information or get a hint while
typing in an expression.

I hope this is helpful. If it isn't, it may help you narrow down what
functionality you're looking for.

Russ Bateman
Re: Javadoc in eclipse offline? [message #539784 is a reply to message #539774] Sun, 13 June 2010 05:26 Go to previous messageGo to next message
LeonLanford  is currently offline LeonLanford Friend
Messages: 5
Registered: June 2010
Junior Member
Russell Bateman wrote on Sat, 12 June 2010 17:16
On 6/11/2010 8:35 AM, LeonLanford wrote:
> [snip]
>

Let me take a stab at answering this question.

First, I'm not certain which sorts of things you're looking to get hints on.

If it's third party stuff, say a class out of a Hibernate or some such
JAR, there is a way to "hook up" the Javadoc. If this is the case, or
something close to it, please examine
http://www.javahotchocolate.com/tutorials/jars.html, particularly
Appendix D: Setting up a third-party library. This will show you how to
wire up source code or Javadoc so that, from your Eclipse code editor,
you can hover over a symbol to see information or get a hint while
typing in an expression.

I hope this is helpful. If it isn't, it may help you narrow down what
functionality you're looking for.

Russ Bateman


Hi, I found where to change the setting of javadoc, it really is connecting to internet to get javadoc.
It's not third party stuff, JPanel is already included in Java default SDK right?

Here's the screenshot to make more clear
http://j.imagehost.org/0490/javadoc2.jpg

Sorry, I want to ask more:
1. I have to change the javadoc for every single jar? and for every new project I create? Is there no default setting to change it?
screenshot -> http://a.imagehost.org/0887/javadoc.jpg

2. I tried to download javadoc here
it says that it's already include in java sdk but I cannot find any javadoc in java sdk folder, I only found javadoc.exe.
In netbeans I only found org-netbeans-modules-javadoc.jar, it seems that it's module to generate javadoc but it's working offline in netbeans proofs that the javadoc is already in my computer?

If only javadoc working offline in eclipse, it would be better than netbeans.. Sad

I'm using Eclipse IDE for Java EE Developers (190 MB), should I download Eclipse IDE for Java and Report Developers (221 MB) to get the javadoc offline?

Thanks

Re: Javadoc in eclipse offline? [message #539824 is a reply to message #539784] Sun, 13 June 2010 18:41 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

I'm going to punt a little on some of these issues on the off-chance
someone else knows more.

I'm 99.9% certain that different Eclipse downloads will make no
difference in what or how you see Javadoc.

I don't have any trouble getting getting Javadoc for just about anything
I decide I want and I added that section to my tutorial on JARs in
consequence although I do know know just a little bit more now. Perhaps
I'll update it.

I hope someone can see through your impediments better than I.

Best of luck,

Russ


On 6/12/2010 11:26 PM, LeonLanford wrote:
> Russell Bateman wrote on Sat, 12 June 2010 17:16
>> On 6/11/2010 8:35 AM, LeonLanford wrote:
>> > [snip]
>> >
>>
>> Let me take a stab at answering this question.
>>
>> First, I'm not certain which sorts of things you're looking to get
>> hints on.
>>
>> If it's third party stuff, say a class out of a Hibernate or some such
>> JAR, there is a way to "hook up" the Javadoc. If this is the case, or
>> something close to it, please examine
>> http://www.javahotchocolate.com/tutorials/jars.html, particularly
>> Appendix D: Setting up a third-party library. This will show you how
>> to wire up source code or Javadoc so that, from your Eclipse code
>> editor, you can hover over a symbol to see information or get a hint
>> while typing in an expression.
>>
>> I hope this is helpful. If it isn't, it may help you narrow down what
>> functionality you're looking for.
>>
>> Russ Bateman
>
>
> Hi, I found where to change the setting of javadoc, it really is
> connecting to internet to get javadoc.
> It's not third party stuff, JPanel is already included in Java default
> SDK right?
>
> Here's the screenshot to make more clear
> http://j.imagehost.org/0490/javadoc2.jpg
>
> Sorry, I want to ask more:
> 1. I have to change the javadoc for every single jar? and for every new
> project I create? Is there no default setting to change it?
> screenshot -> http://a.imagehost.org/0887/javadoc.jpg
>
> 2. I tried to download javadoc http://java.sun.com/j2se/javadoc/
> it says that it's already include in java sdk but I cannot find any
> javadoc in java sdk folder, I only found javadoc.exe.
> In netbeans I only found org-netbeans-modules-javadoc.jar, it seems that
> it's module to generate javadoc but it's working offline in netbeans
> proofs that the javadoc is already in my computer?
>
> If only javadoc working offline in eclipse, it would be better than
> netbeans.. :(
>
> I'm using Eclipse IDE for Java EE Developers (190 MB), should I download
> Eclipse IDE for Java and Report Developers (221 MB) to get the javadoc
> offline?
>
> Thanks
>
>
Re: Javadoc in eclipse offline? [message #539840 is a reply to message #539784] Sun, 13 June 2010 23:33 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
LeonLanford wrote on Sun, 13 June 2010 01:26
Russell Bateman wrote on Sat, 12 June 2010 17:16
On 6/11/2010 8:35 AM, LeonLanford wrote:
> [snip]
>

Let me take a stab at answering this question.

First, I'm not certain which sorts of things you're looking to get hints on.

If it's third party stuff, say a class out of a Hibernate or some such
JAR, there is a way to "hook up" the Javadoc. If this is the case, or
something close to it, please examine
http://www.javahotchocolate.com/tutorials/jars.html, particularly
Appendix D: Setting up a third-party library. This will show you how to
wire up source code or Javadoc so that, from your Eclipse code editor,
you can hover over a symbol to see information or get a hint while
typing in an expression.

I hope this is helpful. If it isn't, it may help you narrow down what
functionality you're looking for.

Russ Bateman


Hi, I found where to change the setting of javadoc, it really is connecting to internet to get javadoc.
It's not third party stuff, JPanel is already included in Java default SDK right?

Here's the screenshot to make more clear
http://j.imagehost.org/0490/javadoc2.jpg

Sorry, I want to ask more:
1. I have to change the javadoc for every single jar? and for every new project I create? Is there no default setting to change it?
screenshot -> http://a.imagehost.org/0887/javadoc.jpg

2. I tried to download javadoc here
it says that it's already include in java sdk but I cannot find any javadoc in java sdk folder, I only found javadoc.exe.
In netbeans I only found org-netbeans-modules-javadoc.jar, it seems that it's module to generate javadoc but it's working offline in netbeans proofs that the javadoc is already in my computer?

If only javadoc working offline in eclipse, it would be better than netbeans.. Sad

I'm using Eclipse IDE for Java EE Developers (190 MB), should I download Eclipse IDE for Java and Report Developers (221 MB) to get the javadoc offline?

Thanks



If you are interested in the javadoc for the JDK, then your best bet is
to insure you are using a JDK and not a JRE and to also make sure that
you have installed the source code for the JDK. Eclipse will then
automatically associate the source with the JDK and display both the
source code and javadoc.

JDK source is incuded in a file called src.zip. It is simply a zip file
of the .java files that make up the JDK. Leave the file as (don't unzip
it). It is normally going to be in the base directory of the JDK after
installation.

Since you aren't able to see the javadoc locally, My guess is you never
installed it or you are running against a JRE instead of a JDK. If you
are running against a JRE, I would recommend that you install a JDK and
use that for your development. You can defined the JDK/JRE that Eclipse
uses on the Window->Preferences->Java->Installed JRE section. Use the
Add or Edit buttons to point to a JDK.

If you are pointing to a JDK and still aren't seeing the javadoc
locally, then you need to associate the source with the JDK. ON the
same Installed JRE screen, use the Edit button to edit the settings for
the JDK. In the list of jar files, you can set source attachment.

Select all the jar files (click on first one, shift click on last one)
and select the Source Attachment button. Navigate to the location where
the src.zip file is located and select it.

You can also set a separate Javadoc location in a similar manner by
using the Javadoc location button. However, if the source attachment is
successful, you shouldn't need the javadoc location.

Once set for a workspace, all projects created will use the locations
for the default JDK so they will pick it up automatically.
Re: Javadoc in eclipse offline? [message #539853 is a reply to message #539840] Mon, 14 June 2010 06:42 Go to previous messageGo to next message
LeonLanford  is currently offline LeonLanford Friend
Messages: 5
Registered: June 2010
Junior Member
David Wegener wrote on Sun, 13 June 2010 19:33
LeonLanford wrote on Sun, 13 June 2010 01:26
Russell Bateman wrote on Sat, 12 June 2010 17:16
On 6/11/2010 8:35 AM, LeonLanford wrote:
> [snip]
>

Let me take a stab at answering this question.

First, I'm not certain which sorts of things you're looking to get hints on.

If it's third party stuff, say a class out of a Hibernate or some such
JAR, there is a way to "hook up" the Javadoc. If this is the case, or
something close to it, please examine
http://www.javahotchocolate.com/tutorials/jars.html, particularly
Appendix D: Setting up a third-party library. This will show you how to
wire up source code or Javadoc so that, from your Eclipse code editor,
you can hover over a symbol to see information or get a hint while
typing in an expression.

I hope this is helpful. If it isn't, it may help you narrow down what
functionality you're looking for.

Russ Bateman


Hi, I found where to change the setting of javadoc, it really is connecting to internet to get javadoc.
It's not third party stuff, JPanel is already included in Java default SDK right?

Here's the screenshot to make more clear
http://j.imagehost.org/0490/javadoc2.jpg

Sorry, I want to ask more:
1. I have to change the javadoc for every single jar? and for every new project I create? Is there no default setting to change it?
screenshot -> http://a.imagehost.org/0887/javadoc.jpg

2. I tried to download javadoc here
it says that it's already include in java sdk but I cannot find any javadoc in java sdk folder, I only found javadoc.exe.
In netbeans I only found org-netbeans-modules-javadoc.jar, it seems that it's module to generate javadoc but it's working offline in netbeans proofs that the javadoc is already in my computer?

If only javadoc working offline in eclipse, it would be better than netbeans.. Sad

I'm using Eclipse IDE for Java EE Developers (190 MB), should I download Eclipse IDE for Java and Report Developers (221 MB) to get the javadoc offline?

Thanks



If you are interested in the javadoc for the JDK, then your best bet is
to insure you are using a JDK and not a JRE and to also make sure that
you have installed the source code for the JDK. Eclipse will then
automatically associate the source with the JDK and display both the
source code and javadoc.

JDK source is incuded in a file called src.zip. It is simply a zip file
of the .java files that make up the JDK. Leave the file as (don't unzip
it). It is normally going to be in the base directory of the JDK after
installation.

Since you aren't able to see the javadoc locally, My guess is you never
installed it or you are running against a JRE instead of a JDK. If you
are running against a JRE, I would recommend that you install a JDK and
use that for your development. You can defined the JDK/JRE that Eclipse
uses on the Window->Preferences->Java->Installed JRE section. Use the
Add or Edit buttons to point to a JDK.

If you are pointing to a JDK and still aren't seeing the javadoc
locally, then you need to associate the source with the JDK. ON the
same Installed JRE screen, use the Edit button to edit the settings for
the JDK. In the list of jar files, you can set source attachment.

Select all the jar files (click on first one, shift click on last one)
and select the Source Attachment button. Navigate to the location where
the src.zip file is located and select it.

You can also set a separate Javadoc location in a similar manner by
using the Javadoc location button. However, if the source attachment is
successful, you shouldn't need the javadoc location.

Once set for a workspace, all projects created will use the locations
for the default JDK so they will pick it up automatically.



Yes it's already working!
eclipse is pointing to jre folder instead of jdk.
I have jre6 and jdk1.6.0_16 installed in java folder(I have the jre first then installed jdk later).
Now I also know that the javadoc is in the src.zip folder.

Your instruction is very clear.
Thanks a lot! Very Happy


@Russ Bateman
Thanks for your effort Very Happy
Re: Javadoc in eclipse offline? [message #539978 is a reply to message #539853] Mon, 14 June 2010 13:37 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

The point we've been trying gently to make, Leon, is that it's not best
practice to point Eclipse at a mere JRE. You've expended a great deal of
time and effort on this problem, which you haven't fixed yet, that would
not have arisen if you'd simply downloaded a JDK and pointed Eclipse at
it using eclipse.ini.

Good luck,

Russ


On 6/14/2010 12:42 AM, LeonLanford wrote:
> David Wegener wrote on Sun, 13 June 2010 19:33
>> LeonLanford wrote on Sun, 13 June 2010 01:26
>> > Russell Bateman wrote on Sat, 12 June 2010 17:16
>> > > On 6/11/2010 8:35 AM, LeonLanford wrote:
>> > > > [snip]
>> > > >
>> > > > > Let me take a stab at answering this question.
>> > > > > First, I'm not certain which sorts of things you're looking to
>> get hints on.
>> > > > > If it's third party stuff, say a class out of a Hibernate or
>> some such > > JAR, there is a way to "hook up" the Javadoc. If this is
>> the case, or > > something close to it, please examine > >
>> http://www.javahotchocolate.com/tutorials/jars.html, particularly > >
>> Appendix D: Setting up a third-party library. This will show you how
>> to > > wire up source code or Javadoc so that, from your Eclipse code
>> editor, > > you can hover over a symbol to see information or get a
>> hint while > > typing in an expression.
>> > > > > I hope this is helpful. If it isn't, it may help you narrow
>> down what > > functionality you're looking for.
>> > > > > Russ Bateman
>> > > > Hi, I found where to change the setting of javadoc, it really is
>> connecting to internet to get javadoc.
>> > It's not third party stuff, JPanel is already included in Java
>> default SDK right?
>> > > Here's the screenshot to make more clear
>> > http://j.imagehost.org/0490/javadoc2.jpg
>> > > Sorry, I want to ask more:
>> > 1. I have to change the javadoc for every single jar? and for every
>> new project I create? Is there no default setting to change it?
>> > screenshot -> http://a.imagehost.org/0887/javadoc.jpg
>> > > 2. I tried to download javadoc here
>> > it says that it's already include in java sdk but I cannot find any
>> javadoc in java sdk folder, I only found javadoc.exe.
>> > In netbeans I only found org-netbeans-modules-javadoc.jar, it seems
>> that it's module to generate javadoc but it's working offline in
>> netbeans proofs that the javadoc is already in my computer?
>> > > If only javadoc working offline in eclipse, it would be better
>> than netbeans.. :(
>> > > I'm using Eclipse IDE for Java EE Developers (190 MB), should I
>> download Eclipse IDE for Java and Report Developers (221 MB) to get
>> the javadoc offline?
>> > > Thanks
>>
>> If you are interested in the javadoc for the JDK, then your best bet is
>> to insure you are using a JDK and not a JRE and to also make sure that
>> you have installed the source code for the JDK. Eclipse will then
>> automatically associate the source with the JDK and display both the
>> source code and javadoc.
>>
>> JDK source is incuded in a file called src.zip. It is simply a zip file
>> of the .java files that make up the JDK. Leave the file as (don't unzip
>> it). It is normally going to be in the base directory of the JDK after
>> installation.
>>
>> Since you aren't able to see the javadoc locally, My guess is you never
>> installed it or you are running against a JRE instead of a JDK. If you
>> are running against a JRE, I would recommend that you install a JDK and
>> use that for your development. You can defined the JDK/JRE that Eclipse
>> uses on the Window->Preferences->Java->Installed JRE section. Use the
>> Add or Edit buttons to point to a JDK.
>>
>> If you are pointing to a JDK and still aren't seeing the javadoc
>> locally, then you need to associate the source with the JDK. ON the
>> same Installed JRE screen, use the Edit button to edit the settings for
>> the JDK. In the list of jar files, you can set source attachment.
>>
>> Select all the jar files (click on first one, shift click on last one)
>> and select the Source Attachment button. Navigate to the location where
>> the src.zip file is located and select it.
>>
>> You can also set a separate Javadoc location in a similar manner by
>> using the Javadoc location button. However, if the source attachment is
>> successful, you shouldn't need the javadoc location.
>>
>> Once set for a workspace, all projects created will use the locations
>> for the default JDK so they will pick it up automatically.
>
>
> Yes it's already working!
> eclipse is pointing to jre folder instead of jdk.
> I have jre6 and jdk1.6.0_16 installed in java folder(I have the jre
> first then installed jdk later).
> Now I also know that the javadoc is in the src.zip folder.
>
> Your instruction is very clear.
> Thanks a lot! :d
>
>
> @Russ Bateman
> Thanks for your effort :d
Previous Topic:View of Classes and Interfaces in a Project
Next Topic:Template variable expansions/extensions
Goto Forum:
  


Current Time: Fri Apr 19 04:46:40 GMT 2024

Powered by FUDForum. Page generated in 0.04893 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top