Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Source lookup error when looking at avariable value in the debugger
Source lookup error when looking at avariable value in the debugger [message #235842] Tue, 12 September 2006 22:21 Go to next message
Eclipse UserFriend
Originally posted by: james_adams.yahooo.com

When stepping through some code using the debugger I get the following
message in the field which displays under the variable name/value table
when I highlight a variable:

org.eclipse.core.runtime.CoreException: Source lookup error

This doesn't happen when I highlight "this" or a primitive type variable.
I get the same behavior after a restart of Eclipse.

Can anyone suggest a fix for this, or how I night prevent it from
happening in the future? This is not the first time this has happened to
me, and unfortunately I can't remember what sorted it out the last time.

Thanks in advance for any help with this problem.


--James
Re: Source lookup error when looking at a variable value in the debugger [message #235870 is a reply to message #235842] Wed, 13 September 2006 17:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: james_adams.yahooo.com

This also happens in the display tab of the debugging view. For example
here's what happens when I try to display a Map's key set:


searchCriteria.keySet(); (I highlight this and right click "display")

(java.util.HashMap$KeySet) org.eclipse.core.runtime.CoreException:
Source lookup error
Re: Source lookup error when looking at avariable value in the debugger [message #236136 is a reply to message #235842] Wed, 20 September 2006 20:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: james_adams.yahoo.com

In an attempt to get around this error I first scrapped my .metadata, and
when that had no effect I then reinstalled Eclipse 3.2. Still the problem
persists. At this point I'm assuming that there must be something amiss
with my Java installation, although I am using the latest Java JDK/JRE.
Can anyone suggest a next step I should try? This is a very handy feature
of the debugger that has been disabled, and I'd *really* like to restore
it.

Thanks in advance.


--James
Re: Source lookup error when looking at avariable value in the debugger [message #237637 is a reply to message #235842] Wed, 25 October 2006 17:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: james_adams.yahoo.com

I think I have figured out what is happening. Some libraries in my build
path have source attachments. If these files aren't found I get the
source lookup error. Once I remove the source attachment or edit it so
that it points to the right source directory or source JAR then the
problem disappears. The solution I think is to have the source attachment
directory or JARs included as a folder in the project, so the source can
be found in the project, rather than in some random directory on the local
machine (which may or may not be present on another machine). This is
what happened in my case -- another developer made a source attachment to
a directory outside of the project on his local machine, and when I
checked out the project the build path (.classpath) specified a source
attachment location which wasn't present on my machine. So when I started
to debug I started to see the exception complaining that the source
attachment file or directory wasn't being found.


--James
Re: Source lookup error when looking at avariable value in the debugger [message #1016233 is a reply to message #236136] Tue, 05 March 2013 15:09 Go to previous message
José Antonio Pinto is currently offline José Antonio PintoFriend
Messages: 1
Registered: March 2013
Junior Member
Enter in Preferences > Java > Installed JREs

Change or add JRE / JDK, this should be set equal to the JAVA_HOME environment variable.


Resume in portuguese:
O JRE ou JDK do eclipse deve ser o mesmo que o da variável JAVA_HOME, localizada em "Sistema" > "Variáveis de Ambiente" > "Variáveis de Sistema", no windows.
Previous Topic:Problem in using javascript file in Eclipse Indigo
Next Topic:Running APT in headless Eclipse
Goto Forum:
  


Current Time: Thu Mar 28 15:56:54 GMT 2024

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

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

Back to the top