• Post Reply Bookmark Topic Watch Topic
  • New Topic

Noob eclipse question - code assist  RSS feed

 
Todd Johnson
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been out of the java scene for years and am just now getting back into it.

I seem to remember when I last used eclipse, that if I hovered over a standard java element (for example the println() in System.out.println()) and then pressed F2 that I would see the documentation for the object, member or method.

I am running Eclipse 3.1. If I hover over println() in System.out.println() and then press F2 I get a big yellow box that only contains "void java.io.PrintStream.println()" but nothing else.

Do I have something configured incorrectly, or am I remembering incorrectly that Eclipse showed the documentation?

Thanks!
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37403
531
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Todd,
Welcome to JavaRanch!

You are remembering correctly. I think you need to set it up in the workspace preferences first to point to the JavaDoc.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that you are using a JDK as the "default JRE", not a real JRE. Eclipse will pick up the src.zip from the JDK and extract the javadoc info from it.
 
Todd Johnson
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ilja,

Thanks, that was exactly the problem. When I installed the JDK I installed it in d:\java\jdk. Part of the JDK install is the JRE which I installed in d:\java\jre. Eclipse defaulted to using the d:\java\jre runtime, instead of the d:\java\jdk runtime. Once I switched it, I now get all the javadoc.

Thanks, this was driving me nuts.

Todd
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!