Skip to main content



      Home
Home » Newcomers » Newcomers » What Javadoc URL field?
What Javadoc URL field? [message #99416] Mon, 05 September 2005 00:55 Go to next message
Eclipse UserFriend
Originally posted by: rltEclipse.digitry.com

In the Eclipse help file, "Editing a JRE definition" step 6 says, "In the
Javadoc URL field, edit or click Browse... to select the URL location." But
when I follow the directions up to that point, I cannot find a Javadoc URL
field on the form that appears. I'm using J2SE 5.0 (or is it 1.5?) and
Eclipse 3.1 on Windows 2000. Do I need new glasses?

I downloaded and unzipped the J2SE 5.0 documentation, and now I'm trying to
convince Eclipse to use the local copy instead of accessing it from the
Internet when I press Shift+F2 on a standard Java object.

Thanks for any help.
- Richard
Re: What Javadoc URL field? [message #99687 is a reply to message #99416] Mon, 05 September 2005 21:01 Go to previous message
Eclipse UserFriend
Originally posted by: rltEclipse.digitry.com

I seem to be in the business of answering my own questions, so here goes.

"Richard Tenney" <rltEclipse@digitry.com> wrote in message
news:dfgj34$gmn$1@news.eclipse.org...
> In the Eclipse help file, "Editing a JRE definition" step 6 says, "In the
> Javadoc URL field, edit or click Browse... to select the URL location."
But
> when I follow the directions up to that point, I cannot find a Javadoc URL
> field on the form that appears. I'm using J2SE 5.0 (or is it 1.5?) and
> Eclipse 3.1 on Windows 2000. Do I need new glasses?

Apparently not. See bug 89474. The Javadoc URL field has been removed, but
the documentation has not been updated.

> I downloaded and unzipped the J2SE 5.0 documentation, and now I'm trying
to
> convince Eclipse to use the local copy instead of accessing it from the
> Internet when I press Shift+F2 on a standard Java object.

Here's how to do it -- I've now done this on both Windows 2000 and Windows
XP.

Before we start, let me point out that I have determined empirically that
the changes you are about to make show up in the
org.eclipse.jdt.launching.prefs file of the
EclipseWorkspace\.metadata\.plugins\org.eclipse.core.runtime \.settings
directory (where EclipseWorkspace is whatever you've set your Eclipse
workspace to be.) You may want to save this file somewhere in case you make
a hash of these instructions, so you can restore it. I'm sure this is not
the Eclipse way. There may be a way within the IDE to back out of whatever
you did, but I don't know what it is.

1) Download the documentation -- for JDK 1.5, it's jdk-1_5_0-doc.zip from
http://java.sun.com/j2se/1.5.0/download.jsp#docs.
2) You can then either unzip the file or leave it zipped (see 8a and 8b
below). To give it a name for use in step 8, let's assume you put either
the file you downloaded or the root of the tree you unzipped into a
directory named JavaLocal. The actual directory can be any directory name
you like, anywhere in your directory hierarchy.
3) Follow the first three steps of the Eclipse 3.1 Help file entry for
"Editing a JRE definition" -- i.e., select Window > Preferences from the
menu bar, and then, in the left pane, expand the Java category, and select
Installed JREs.
Then select the JRE definition that you want to edit and click Edit....
4) On the new panel that pops up, uncheck "Use default system libraries".
5) Click on the + next to each of the jars, to expose the Javadoc Location:
(a total of eight in my installation).
6) Click on the first Javadoc location. This should enable the Edit...
button. Then hold down the Ctrl key and click on the rest of the Javadoc
locations.
7) Press Edit...
8a) Now, if you unzipped the files, you set the Javadoc location path to
JavaLocal/docs/api/. It is easiest if you use the Browse... button (among
other things, this removes questions about whether to use / or \ as the path
separator).. It is crucial to select the docs/api/ directory, not just the
JavaLocal or docs directory. If you try either of these, you will see a
warning that says "Location does not contain file 'package-list'."
Optionally, you can press the Validate... button. 8b) If you did not unzip
the files, click Javadoc in archive and set Archive path to
JavaLocal/jdk-1_5_0-doc.zip and set Path within archive to docs/api -- it's
easiest to do these using the Browse... buttons. Optionally, press the
Validate... button.
9) Press all the OKs and try Shift-F2. Look in the URL shown by your
browser. If you unzipped the file, you will see that the URL begins
file:/// instead of http://. If you used the zipped file, it will begin
with http://127.0.0.1

Good luck!
- Richard
Previous Topic:Can I set a variable equal to CVS Version #
Next Topic:lomboz problem
Goto Forum:
  


Current Time: Fri Jul 18 10:11:02 EDT 2025

Powered by FUDForum. Page generated in 0.36681 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top