Home » Newcomers » Newcomers » Eclipse doesn't show arguments names in code assist(in JDK libraries only)
| | | | |
Re: Eclipse doesn't show arguments names in code assist [message #653661 is a reply to message #653652] |
Thu, 10 February 2011 15:08 |
|
On 10-Feb-11 07:48, Konstantin wrote:
> Thanks, Dani. Now I know why this happens, and looks like a progress
> already. I've increased the timeout to 300 milliseconds and now it shows
> the correct argument names when there's an Internet connection. But as
> to javadoc download, it seems like I'm stuck. Can I download javadoc
> alone? Google led me to this page
> http://www.oracle.com/technetwork/java/javase/documentation/ index-jsp-135444.html
> which says "It can be downloaded only as part of the Java 2 SDK" but I
> need javadoc only
Right, not the "Javadoc tool".
We're talking about the Javadoc associated with JARs you consume. If you
installed a proper Sun JDK, then it came with Javadoc for all the
ordinary Java packages.
For third-party libraries, you sometimes have to work a little bit. You
download and use the binary (.jar), but you frequently have to hook it
up to its Javadoc or source code, whichever came along with the download.
Typically, when you download a third-party JAR, it will come with lots
more stuff than just the library. That's what Daniel was talking about
when he suggested you right-click on the JAR and choose Properties.
Try it on one of the libraries for which you're not getting Javadoc. You
browse to find that Javadoc in the download. Usually, you choose the
parent directory and it's sometimes called "doc", "javadoc", etc.
Some downloads, such as more of the Apache Commons libraries, come with
JARs that themselves contain Javadoc and you see it in their names.
That's when, in that same Properties dialog, you choose Javadoc in
archive and then go find the Javadoc JAR.
Hope this gets you running.
|
|
| |
Re: Eclipse doesn't show arguments names in code assist [message #653863 is a reply to message #653858] |
Fri, 11 February 2011 15:42 |
|
On 11-Feb-11 08:27, Konstantin wrote:
> That's not exactly what the situation is. I didn't download any
> third-party libraries. I use only standard JDK which I had downloaded
> from oracle. But If I create some custom classes' instances, I can see
> the real names of all arguments of their constructors and other methods.
> This doesn't work for standard classes only.
> I had even removed this JDK and installed it anew. Vainly.
So, it's only for standard Java classes that Javadoc doesn't work?
You installed an actual JDK, right? Not simply a JRE? As long as I
download a JDK, I never fail to have access to Javadoc for every
standard Java interface (java.util, java.io, java.lang, etc., the list
is quite long).
Hmmmm... I've not experienced this problem. Perhaps someone else will
see through this when they read this thread.
Of course, when you create a custom class, you've got access to that
class in the project in which you created it since the source code is there.
|
|
|
Re: Eclipse doesn't show arguments names in code assist [message #653865 is a reply to message #653863] |
Fri, 11 February 2011 15:50 |
David Wegener Messages: 1445 Registered: July 2009 |
Senior Member |
|
|
On Fri, 2011-02-11 at 08:42 -0700, Russell Bateman wrote:
> On 11-Feb-11 08:27, Konstantin wrote:
> > That's not exactly what the situation is. I didn't download any
> > third-party libraries. I use only standard JDK which I had downloaded
> > from oracle. But If I create some custom classes' instances, I can see
> > the real names of all arguments of their constructors and other methods..
> > This doesn't work for standard classes only.
> > I had even removed this JDK and installed it anew. Vainly.
>
> So, it's only for standard Java classes that Javadoc doesn't work?
>
> You installed an actual JDK, right? Not simply a JRE? As long as I
> download a JDK, I never fail to have access to Javadoc for every
> standard Java interface (java.util, java.io, java.lang, etc., the list
> is quite long).
>
> Hmmmm... I've not experienced this problem. Perhaps someone else will
> see through this when they read this thread.
>
> Of course, when you create a custom class, you've got access to that
> class in the project in which you created it since the source code is there.
Be sure to install the source jar file along with the JDK. Then do what
Daniel said in his last post to associate the source with the JDK.
Eclipse will parse out the arguments and JavaDoc from the attached
source without having to go across the internet.
|
|
|
Re: Eclipse doesn't show arguments names in code assist [message #653876 is a reply to message #653863] |
Fri, 11 February 2011 16:41 |
Konstantin Messages: 7 Registered: February 2011 |
Junior Member |
|
|
Russell Bateman wrote on Fri, 11 February 2011 10:42 |
So, it's only for standard Java classes that Javadoc doesn't work?
|
Yes As far as I know. Because I tested only the standard and custom classes, that I wrote myself
Quote: |
You installed an actual JDK, right? Not simply a JRE?
.
|
Yeah. I've got an environment variable Path set as well: C:\Program Files\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%; %SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowe rShell\v1.0\;C:\Program Files\e\cmd;C:\Program Files\QuickTime\QTSystem\;C:\Java\jdk1.6.0_20\bin
I think the project wouldn't even compile without JDK, would it?
Quote: | Be sure to install the source jar file along with the JDK
|
It might be a stupid question, but where do I get it?
Maybe I'm making some wrong queries, but I can't seem to google it out
The installation instruction from oracle doesn't give any info on this matter either
Could you give me a link where I can doenload this file, please?
[Updated on: Fri, 11 February 2011 16:44] Report message to a moderator
|
|
|
Re: Eclipse doesn't show arguments names in code assist [message #654238 is a reply to message #653876] |
Mon, 14 February 2011 17:01 |
Eric Rizzo Messages: 3070 Registered: July 2009 |
Senior Member |
|
|
On 2/11/11 11:41 AM, Konstantin wrote:
> Russell Bateman wrote on Fri, 11 February 2011 10:42
>> So, it's only for standard Java classes that Javadoc doesn't work?
>
> Yes :)
> Quote:
>> You installed an actual JDK, right? Not simply a JRE? .
>
>
> Yeah. I've got an environment variable Path set as well: C:\Program
> Files\NVIDIA
> Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;
> %SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowe
> rShell\v1.0\;C:\Program Files\e\cmd;C:\Program
> Files\QuickTime\QTSystem\;C:\Java\jdk1.6.0_20\bin
>
> I think the project wouldn't even compile without JDK, would it?
> Quote:
>> Be sure to install the source jar file along with the JDK
>
>
> I might be a stupid question, but where do I get it? Maybe I'm making
> some wrong queries, but I can't seem to google it out :roll:
> The installation instruction from
> http://www.oracle.com/technetwork/java/javase/documentation/ install-windows-152927.html
> doesn't give any info on this matter
>
> Could you give me a link where I can doenload this file, please? :roll:
I doubt you can download the source separately. But when you install the
JDK (not the JRE, make sure you're getting the JDK), there's an option
during the installation to include the source or not. At least, there
used to be; I haven't installed on Windows in a couple of years, not
since Oracle took over, so there's a chance it has changed)
Here's the page to get the JDK from:
http://www.oracle.com/technetwork/java/javase/downloads/inde x.html
Eric
|
|
| | | | |
Goto Forum:
Current Time: Wed Sep 25 09:13:21 GMT 2024
Powered by FUDForum. Page generated in 0.08228 seconds
|