| Summary: | "Selection does not contain a main type" error from project that has been added to a second projects libraries | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Alan Haggarty <haggarty> | ||||
| Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | darin.eclipse, rashraf | ||||
| Version: | 3.4.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
|
Description
Alan Haggarty
Moving to JDT/Debug Works for me. I added the "test1/bin" folder as the class folder to "test2", expand the folder, select "class1.class", press "Run" and it works. Marking as works for me. Created attachment 117136 [details]
screen shot of config for test2 class
I also cannot reproduce if I add test1/bin, but if I add just the top level test1 it does. See the attached screenshot for build path config of test2. Is this valid. What is the output directory for project test1? (is it the root of the project?) When specifying a class folder you have to specify the root of the packages. I am not sure, I have been able to resolve dependencies in a second project this way if I try to instantiate class1 from test2/class2 for example, so it can find the classes. It just includes bin.test1. I looked back at the original test and in that case the projects do not have separate directories for class and src files (Uses "Use project folder as root for sources and class files") and in that case there is no option to add bin directly. Also in that case removing the directory from the library path of test2 doesn't fix the problem in test1. It seems to be permanently unrunnable. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |