Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » open declaration problem
open declaration problem [message #250029] Sun, 24 February 2008 14:38 Go to next message
Eclipse UserFriend
Originally posted by: wen.g.he.gmail.com

Hi:

I downloaded from sun.com the SDK file java_ee_sdk-5_01-windows.exe
and installed it in E:/SUN/SDK.

I would like to see the source code of the built-in classes, so I select a
type in a .java file, say String, then right click and select Open
Declaration. Then I got "souce not found", and I click button "attach
source.." and set the source to E:/SUN/SDK/jdk/jre/lib/rt.jar

But I still get "source not found" error.

How can I fix this please?

Thank you very much

Wen
Re: open declaration problem [message #250039 is a reply to message #250029] Sun, 24 February 2008 17:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cboe.news.eclipse.org

On Sun, 2008-02-24 at 14:38 +0000, Wen wrote:
> Hi:
>
> I downloaded from sun.com the SDK file java_ee_sdk-5_01-windows.exe
> and installed it in E:/SUN/SDK.
>
> I would like to see the source code of the built-in classes, so I select a
> type in a .java file, say String, then right click and select Open
> Declaration. Then I got "souce not found", and I click button "attach
> source.." and set the source to E:/SUN/SDK/jdk/jre/lib/rt.jar
>
> But I still get "source not found" error.
>
> How can I fix this please?
>
> Thank you very much
>
> Wen
>

rt.jar is a jar file with the compiled class files. You need to attach
the actual source code. Sun provides source in a file called src.zip.
I believe you normally have to specifically select the option to install
source when installing the sdk.
Re: open declaration problem [message #250076 is a reply to message #250039] Mon, 25 February 2008 08:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wen.g.he.gmail.com

David Wegener wrote:
> rt.jar is a jar file with the compiled class files. You need to attach
> the actual source code. Sun provides source in a file called src.zip.
> I believe you normally have to specifically select the option to install
> source when installing the sdk.

Hi David:

I am using Java Platform, Enterprise Edition 5 SDK Update 1
I ran through the installation again, and found no explicit option to
install src.zip.

After I re-installed the SDK, I did a search on the folder SDK and found
no src.zip at all.

Questions:
Does anyone know how to fix it?
Could the source code file in this SDK version be named differently?
If this version doesn't come with the source code file, can I download it
somewhere individually?

thank you very much

Wen
Re: open declaration problem [message #250080 is a reply to message #250076] Mon, 25 February 2008 08:36 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
Hey Wen,

I don't know if the source attachment comes with the Enterprise Edition.
But from all my previous experiences, the src.zip came automatically
with the Standard Edition SDK. I never had to specify any options. You
might want to download this and look there. In my current installation
it is located directly in the SDK root folder.

Felix
Re: open declaration problem (suggestion) [message #250188 is a reply to message #250029] Tue, 26 February 2008 06:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wen.g.he.gmail.com

Basing on the problem I encountered, can I make a suggestion to the
according development team?

When I tried to attached the source code for Open Declaration, the I got
the message in Eclipse asking me to find rt.jar, so obviously this needs
to change to src.zip.

Can anyone forward my suggestion to the concerned person?

Thank you

Wen
Re: open declaration problem (suggestion) [message #250196 is a reply to message #250188] Tue, 26 February 2008 08:50 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Wen He wrote:
> Basing on the problem I encountered, can I make a suggestion to the
> according development team?
> When I tried to attached the source code for Open Declaration, the I
> got the message in Eclipse asking me to find rt.jar, so obviously this
> needs to change to src.zip.
> Can anyone forward my suggestion to the concerned person?
Please file a bug
(https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT) with the steps
you made.

Dani
> Thank you
> Wen
>
Re: open declaration problem [message #754639 is a reply to message #250029] Thu, 03 November 2011 17:25 Go to previous message
Megaboyvn  is currently offline Megaboyvn Friend
Messages: 1
Registered: November 2011
Junior Member
Here is my src.zip location. FInd your appropriate location. enjoy eclip:D
C:\Program Files\Java\jdk1.6.0_24\src.zip
Previous Topic:PAR project runtime and deploy error
Next Topic:Eclipse and Analog Devices SHARC DSP
Goto Forum:
  


Current Time: Tue Apr 16 11:22:13 GMT 2024

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

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

Back to the top