| [news.eclipse.newcomer] Re: Eclipse how to: compile a single file or only few files |
Jeff Myers wrote:
Mansour,
Are the client, server and commonFiles split out into separate projects? You'll probably have an easier time if you make each of them as source folders within the same project, or different packages within the same source folder. Then all of the compiled objects will be put in the same output folder. So for instance, you'd create a new Java project with client "Create separate source and output folders" selected, then on the second page, remove the default src folder in the list, and hit the "Create a new Source Folder for the project" button at the top right, and add client, server and commonFiles. Then at the bottom, change the output folder to targetFolder. Then import your source into the respective folders and everything should compile happily.
Hope this helps, - Jeff
Jeff:
Thanx alot, It sound a great idea and close to what I want. I'll try this soon, and let you know. The way I was going to solve this is by including and excluding the files from the path, then compile them into a common folder, then create a jar file from that folder, clean and so the same for the rest of the sections. This seemed to be great, however, I'll try to do them in separate folders. I dont know if this will compile and include "only" the classes I need from the common folder, as the common folder really is a package "NOT A JAR", and it contains alot of files that I dont want to include, I think this wil be the only problem. If you have any suggestion then let me know. thank you.