Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple JDK profiles with Eclipse

 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need different JDK versions (1.3, 1.4 etc), to test my app. How can I configure multiple profiles in eclipse?
Also, I need to configure eclipse such that standard java docs help (String class etc) should be availble in the IDE itself instead of opening a new help window (similar to JCreator). How do I do this? It would be great if I could link different version documents to different versions.
Any help would be greatly appreciated.
TIA,
- Manish
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Manish Hatwalne:
I need different JDK versions (1.3, 1.4 etc), to test my app. How can I configure multiple profiles in eclipse?

Window/Preferences/Java/Installed JREs

Also, I need to configure eclipse such that standard java docs help (String class etc) should be availble in the IDE itself instead of opening a new help window (similar to JCreator). How do I do this?

You should see a snippet of the javadoc if you hover the mouse cursor over a class name in the source code. Pressing F2 should then give you the full javadoc popup.
In 3.0, you can also open the Javadoc view. Window/Open View/Javadoc.
 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ilja Preuss:

You should see a snippet of the javadoc if you hover the mouse cursor over a class name in the source code. Pressing F2 should then give you the full javadoc popup.
In 3.0, you can also open the Javadoc view. Window/Open View/Javadoc.

Pressing F2 does not help, it does show a light yellow popup, but it only shows "java.lang.String" in it. I don't have 3.0 though
- Manish
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Manish Hatwalne:
Pressing F2 does not help, it does show a light yellow popup, but it only shows "java.lang.String" in it. I don't have 3.0 though

Than most probably your default JRE is not a JDK. If you configure a JDK (instead of a JRE), Eclipse should automatically find the src.zip and extract the javadoc comments.
 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ilja Preuss:

Than most probably your default JRE is not a JDK. If you configure a JDK (instead of a JRE), Eclipse should automatically find the src.zip and extract the javadoc comments.

RIGHT!!! Eclipse took JRE path instead of JDK, changed it and now it works! Thanks a ton!!!
- Manish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic