This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse/WSAD 5.1.1

 
Bharat Ruparel
Ranch Hand
Posts: 493
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to enable the JavaDoc display for the Code Assist feature in WSAD 5.1.1 which is built on the Eclipse 2.1 platform. The online help says the following about working with JREs:
" You can install as many different Java Runtime Environments (JREs) as you like. A JRE definition consists of:
The type of the JRE (e.g. Standard VM or Standard 1.x.x VM)
A name
The location where the JRE is installed
The location (URL) of the Javadoc
The system libraries containing the Java system classes (like java.lang.Object). Optionally, the system libraries can be associated with the source file containing the source for the classes in the JRE's CLASS files
You can switch the default JRE for the workbench. The default JRE is the JRE to which the pre-defined classpath variables JRE_LIB, JRE_SRC and JRE_SRCROOT are bound. "
Further, my class path variables dialog box shows the following variables assigned amongst others:
JRE_LIB (reserved) - C:\Program Files\ibm\WebSphere Studio\Application Developer\v5.1.1\eclipse\jre\lib\rt.jar
JRE_SRC (reserved) - (empty)
JRE_SRCROOT (reserved) - (empty)
These options are grayed out and I cannot edit it as the online help indicates. I think since both JRE_SRC and JRE_SRCROOT are unassigned that is the reason why I don't see the pop-up source-code comment displays. Is there any way around this?
Thanks.
Bharat
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34179
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bharat,
Is there a JRE set under windows->preferences->java->jre ?
 
Bharat Ruparel
Ranch Hand
Posts: 493
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Jeanne,
Thanks for the response. There is a "Standard JVM" installed under Installed JREs which has the path that I posted. This JRE has been selected by default, i.e., the check box shows selection. Moreover, the instructional comment above it shows.. "The checked JRE will be used by default to build and run Java Programs."
Is that what you are asking?
Regards.
Bharat
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34179
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bharat,
Yes, that was what I was asking. So your Eclipse/WSAD is indeed finding a JRE. Your classpath variables are working as expected. Since you probably haven't downloaded the JRE source code, it makes sense that those two classpath variables are blank. (Mine are too and code assist provides javadoc.)
Are you able to see the javadoc for code that you have written? This will tell you whether the problem is with the jre or something else.
 
Bharat Ruparel
Ranch Hand
Posts: 493
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Jeanne,
You wrote:

Are you able to see the javadoc for code that you have written? This will tell you whether the problem is with the jre or something else.

Affirmative! I can see the javadoc for the code that I write. It is the JDK source code that is not visible to me. The thing that puzzles me is: I can see the the "src.jar" file in the "C:\Program Files\ibm\WebSphere Studio\Application Developer\v5.1.1\eclipse\jre" directory. I just don't understand why the installer didn't pick it up under JRC_SRC classpath variable. I do not know what JRC_SRCROOT variable stands for.
Regards.
Bharat
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34179
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bharat,
And the default jre is using "C:\Program Files\ibm\WebSphere Studio\Application Developer\v5.1.1\eclipse\jre" ? The only thing I can think of is the download a jre from sun and point to that.
JRE_SRC is the jar file for the source. JRE_SRCROOT is the path within the jar file at which the package hierarchy begins.
 
Bharat Ruparel
Ranch Hand
Posts: 493
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Jeanne,
You wrote:

And the default jre is using "C:\Program Files\ibm\WebSphere Studio\Application Developer\v5.1.1\eclipse\jre" ? The only thing I can think of is the download a jre from sun and point to that.

Here is what I see. I bring up the "Preferences" dialog box by choosing it from under the "Windows" menu. Under Java section, I see Installed JRE's. I open it up, it has only one JRE installed by default which is called "Standard VM" (JRE Type column), the next column name shows a value eclipse for it. Selecting this row and clicking Edit brings up another dialog box which indicates the following path for the "JRE Home directory".
C:\Program Files\ibm\WebSphere Studio\Application Developer\v5.1.1\eclipse.
It does not show the last part, i.e., \jre. Is that a problem?
Thanks.
Bharat
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34179
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bharat,
You had it right. I was trying without WSAD in front of me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic