Mac OS X: How Install JDK Source? [message #17304] |
Wed, 26 January 2005 20:04  |
Eclipse User |
|
|
|
Sorry for the newbie question: I've got Eclipse 3.1.0 running on my Mac
powerbook and would like to install the source for the JDK 1.4.2 the system
currently is using.
I downloaded the jdk 1.4.2 release for linux, and got the src.zip file from it,
which should be fine for Eclipse to use, I think.
My question is: how do I install this source archive into Eclipse?
I tried to bind the source to the jre in the preferences>java>installed JREs,
but this did not seem to work: I tried selecting the classes.jar file and
associateing the src.zip file and it didn't "take". Earlier I had associated
the javadocs from sun with the JRE and it worked fine (there was a specific
field for doing this).
I also tried the preferences>java>buildpath>classpath variables panel, which has
a JRE_SRC entry, but it was not editable.
So I'm stuck! Any pointers?
Thanks
|
|
|
Re: Mac OS X: How Install JDK Source? [message #19755 is a reply to message #17304] |
Fri, 28 January 2005 15:18   |
Eclipse User |
|
|
|
I answered my own question:
I downloade a java.sun.com 1.4.2 linux distro, grabbed the src.zip file from it,
copied it to the mac location (/Library/Java/Home) for javahome, exited and
restarted eclipse, and it worked: tooltips show lots more interesting information.
I believe I could have simply installed the complete SDK from the Apple
Developer's Connection site as well, it includes the src.zip too, I think.
My main confusion was simply this: with the javadocs installed via eclipse's
preferences panels, I was still not getting expanded tooltips. The reason
wasn't obvious: eclipse uses the source code for these, not the javadocs. Makes
sense, but I missed the subtlety, initially.
Owen Densmore wrote:
> Sorry for the newbie question: I've got Eclipse 3.1.0 running on my Mac
> powerbook and would like to install the source for the JDK 1.4.2 the
> system currently is using.
>
> I downloaded the jdk 1.4.2 release for linux, and got the src.zip file
> from it, which should be fine for Eclipse to use, I think.
>
> My question is: how do I install this source archive into Eclipse?
>
> I tried to bind the source to the jre in the preferences>java>installed
> JREs, but this did not seem to work: I tried selecting the classes.jar
> file and associateing the src.zip file and it didn't "take". Earlier I
> had associated the javadocs from sun with the JRE and it worked fine
> (there was a specific field for doing this).
>
> I also tried the preferences>java>buildpath>classpath variables panel,
> which has a JRE_SRC entry, but it was not editable.
>
> So I'm stuck! Any pointers?
>
> Thanks
|
|
|
Re: Mac OS X: How Install JDK Source? [message #19839 is a reply to message #19755] |
Fri, 28 January 2005 18:25  |
Eclipse User |
|
|
|
Originally posted by: alan.ljubljana.agtrz.com
On 2005-01-28, Owen Densmore <owen@backspaces.net> wrote:
> I answered my own question:
>
> I downloade a java.sun.com 1.4.2 linux distro, grabbed the src.zip file from
> it, copied it to the mac location (/Library/Java/Home) for javahome, exited
> and restarted eclipse, and it worked: tooltips show lots more interesting
> information.
>
> I believe I could have simply installed the complete SDK from the Apple
> Developer's Connection site as well, it includes the src.zip too, I think.
>
> My main confusion was simply this: with the javadocs installed via eclipse's
> preferences panels, I was still not getting expanded tooltips. The reason
> wasn't obvious: eclipse uses the source code for these, not the javadocs.
> Makes sense, but I missed the subtlety, initially.
Install XCode from Apple. I know you got it working with Linux, but life
will be easier in the long run if you install XCode. I have XCode 1.5
installed, and I hardly ever use it. It's only there to feed Eclipse.
Do it and everything will work forever.
--
Alan Gutierrez - alan@engrm.com
|
|
|
Powered by
FUDForum. Page generated in 0.07309 seconds