Source attachment looks fine, but Eclipse can't find the source [message #508551] |
Tue, 19 January 2010 07:27  |
Eclipse User |
|
|
|
I have seen that several questions on source attachment problems have gone unanswered. Please help if you have a clue on where to start to find how this type of problem can be resolved. I have searched the Eclipse forums, the web and have followed several tutorials, yet Eclipse still says it can't find the source. This applies to while I'm debugging my projects code and also if I look at the JRE System library code directly.
In both cases Eclipse says that I have source attached and its pointing in my knowledge to the root folder or correct jar of the source code for the library. See below for details.
I have reinstalled Eclipse Java EE for Web Developers to solve another problem under OS X 10.5.8 and have downloaded the source for the Apple 1.5.0 JVM, as I want to be able to step inside the java.sql library, as I have some problems in a javabean I want to straighten out.
I've set in my javabean, imported the java.sql libraries and using db, being a Connection object:
db = DriverManager.getConnection("jdbc:mysql://localhost/catalog");
/*and later*/
Statement s = db.createStatement();
ResultSet rs = s.executeQuery("SELECT id, description, manufactor, price FROM product");
Textbook stuff, no?
When I later try to step into this in the debugger:
while (rs.next())
I encounter problems as Eclipse can't find the source, so I can't see what's going on (which is something stupidly simple I'm sure). Yet I have referenced the source in the projects: Properties > Java Build Path > Libraries > JRE System Lib > classes.jar > Source Attachment > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/H ome/src.jar
and even as Eclipse shows the source attachment as pointing to the right jar or folder it also keeps saying "Source not found" in all situations. I also unpacked the source and pointed Eclipse to the root folder that contains the folders: com, sunw, java, javax and org and after that in the debugger I tried to adjust the path to point directly to the java.sql source folder, with the same results unfortunately. I also pointed to the java folder only as the root folder.
Any pointers on how to solve this kind of problem would be most helpful. How do I reference / link / edit the path to the source so that Eclipse can find it?
Could this be a file formatting issue? Is Eclipse for Mac not compatible with Apples own source library?
|
|
|
Re: Source attachment looks fine, but Eclipse can't find the source [message #508656 is a reply to message #508551] |
Tue, 19 January 2010 13:13  |
Eclipse User |
|
|
|
"MB" <digital.discuss@gmail.com> wrote in message
news:hj48fg$eq4$1@build.eclipse.org...
>I have seen that several questions on source attachment problems have gone
>unanswered. Please help if you have a clue on where to start to find how
>this type of problem can be resolved. I have searched the Eclipse forums,
>the web and have followed several tutorials, yet Eclipse still says it
>can't find the source. This applies to while I'm debugging my projects code
>and also if I look at the JRE System library code directly.
> In both cases Eclipse says that I have source attached and its pointing in
> my knowledge to the root folder or correct jar of the source code for the
> library. See below for details.
>
> I have reinstalled Eclipse Java EE for Web Developers to solve another
> problem under OS X 10.5.8 and have downloaded the source for the Apple
> 1.5.0 JVM, as I want to be able to step inside the java.sql library, as I
> have some problems in a javabean I want to straighten out.
>
> I've set in my javabean, imported the java.sql libraries and using db,
> being a Connection object:
> db = DriverManager.getConnection("jdbc:mysql://localhost/catalog");
> /*and later*/
> Statement s = db.createStatement();
> ResultSet rs = s.executeQuery("SELECT id, description, manufactor, price
> FROM product");
>
> Textbook stuff, no?
> When I later try to step into this in the debugger:
> while (rs.next())
>
> I encounter problems as Eclipse can't find the source, so I can't see
> what's going on (which is something stupidly simple I'm sure). Yet I have
> referenced the source in the projects: Properties > Java Build Path >
> Libraries > JRE System Lib > classes.jar > Source Attachment >
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/H ome/src.jar
>
Normally, you defined the source for the JRE/JDK on the
Windows->Preferences->Java->Installed JREs dialog. Select the jre/jdk that
you are interested in and hit edit. You can then specify the source for
each jar provided by the JRE.
> and even as Eclipse shows the source attachment as pointing to the right
> jar or folder it also keeps saying "Source not found" in all situations. I
> also unpacked the source and pointed Eclipse to the root folder that
> contains the folders: com, sunw, java, javax and org and after that in the
> debugger I tried to adjust the path to point directly to the java.sql
> source folder, with the same results unfortunately. I also pointed to the
> java folder only as the root folder.
>
> Any pointers on how to solve this kind of problem would be most helpful.
> How do I reference / link / edit the path to the source so that Eclipse
> can find it?
>
> Could this be a file formatting issue? Is Eclipse for Mac not compatible
> with Apples own source library?
|
|
|
Powered by
FUDForum. Page generated in 0.04096 seconds