Help resolving class file access problem [message #297799] |
Thu, 19 January 2006 17:14  |
Eclipse User |
|
|
|
Originally posted by: phil.tiffin.btconnect.com
I'm using Eclipse 3.0 and have been given a large number of jar files
containing only class files. I have made these jar files available to my
project as external libraries and can build and run my project without
issue.
However, there are some classes within the solution that I wish to modify
and I have obtained the java source for those classes and created the
relevant packages within a 'sandbox' folder. My hope was that I could
simply include the sandbox folder at the start of the project classpath
and then be able to step through my modified java source code in the
Eclipse debugger, but when I try and do this, Eclipse still picks up the
original class files from the external jars.
I've tried cleaning the project and checked to ensure that my modified
source files are being rebuilt (new class files are being generated in the
sandbox and the sandbox java and class file locations have been added to
the start of the user classpath). I've ensured that the sandbox source
files are included on the 'Source' tab of 'Create, manage and run
configurations' but still I can't persuade the debugger to use my modified
source in preference to the original class files.
Can anybody think of anything else I should be doing?
Many Thanks...
|
|
|
Re: Help resolving class file access problem [message #297803 is a reply to message #297799] |
Thu, 19 January 2006 17:47  |
Eclipse User |
|
|
|
Originally posted by: wegener.cboenospam.com
Phil T wrote:
> I'm using Eclipse 3.0 and have been given a large number of jar files
> containing only class files. I have made these jar files available to my
> project as external libraries and can build and run my project without
> issue.
> However, there are some classes within the solution that I wish to modify
> and I have obtained the java source for those classes and created the
> relevant packages within a 'sandbox' folder. My hope was that I could
> simply include the sandbox folder at the start of the project classpath
> and then be able to step through my modified java source code in the
> Eclipse debugger, but when I try and do this, Eclipse still picks up the
> original class files from the external jars.
> I've tried cleaning the project and checked to ensure that my modified
> source files are being rebuilt (new class files are being generated in the
> sandbox and the sandbox java and class file locations have been added to
> the start of the user classpath). I've ensured that the sandbox source
> files are included on the 'Source' tab of 'Create, manage and run
> configurations' but still I can't persuade the debugger to use my modified
> source in preference to the original class files.
> Can anybody think of anything else I should be doing?
> Many Thanks...
Did you change the classpath in the launch configuration or just the build
path. The launch configuration can have a separate classpath from the
build classpath for a project. Select the Run... menu option. This will
open up a dialog with all of the launch configurations defined in your
workspace. Select the one for the application and go to the Claspath tab.
Make sure that the sandbox project appears before the external jars.
|
|
|
Powered by
FUDForum. Page generated in 0.04026 seconds