wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse/WSAD 5.1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse/WSAD 5.1.1" Watch "Eclipse/WSAD 5.1.1" New topic
Author

Eclipse/WSAD 5.1.1

Bharat Ruparel
Ranch Hand

Joined: Jul 30, 2003
Posts: 493
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


SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Bharat,
Is there a JRE set under windows->preferences->java->jre ?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Bharat Ruparel
Ranch Hand

Joined: Jul 30, 2003
Posts: 493
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

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

Joined: Jul 30, 2003
Posts: 493
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

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

Joined: Jul 30, 2003
Posts: 493
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Bharat,
You had it right. I was trying without WSAD in front of me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse/WSAD 5.1.1
 
Similar Threads
eclipse and javadoc
WebSphere dev. studio classpath problem??
TUSC Tutorial's DAO Implementation's Exception Handling Bad?
WebSphere IDE Tool - Debugging
compilation error