there are probably several ways to do this:
1) uberproject is your javaproject. right click programa -> build path -> use as source folder. right click programb -> build path -> use as source folder. both programa and programb will do incremental builds to the same directory.
2) two java projects (programa and programb). you can use uberproject as your eclipse workspace which would be easiest or you can use an outside workspace and import programa and programb as external projects.
there are probably other ways as well (maven multi-module project). your choice probably depends on whether you have cyclic dependencies between projects. it should be relatively easy to try both 1 and 2 and see what works best for you.
do you need uberproject? i have the same layout but have multiple top-level projects created with file|new project. if not, can you make it a general rather than java project?
so you can do it via having two java projects in your workspace.
then the question is how to group the two projects together under "uberproject"
one way is to have an "uberproject" workspace, and switch workspaces between uberprojects. an alternative is to define "uberproject" as a working set (window:working sets) and add prmgrama and programb as projects of that working set. select that working set, and you see only those projects.
you can have one java project, and define multiple source folders for it. that is normally do that for "main" vs "test" hierarchies within the same project.
there are ways, and ways. pick one that works for you :-)
you can have multiple source directories in a single project, but your description makes it sound like you want multiple sub-projects in a project, which eclipse doesn't allow (as far as i know).
if you really just want multiple source directories, where
programb, etc. contain only java files and nothing else, then you can do this relatively easy. right-click on your project in the package explorer, and select
build path -> configure build path.... in the dialog that pops up, make sure
java build path is selected in the left pane, click the
source tab, then click the
add folder... button. pick
programa from the list, and repeat for
if you want each source folder to have its own output folder, just check the
allow output folders for source folders checkbox and edit the output folders as desired.
if that is not, in fact, what you want to do, then another option might be to group your projects into a working set. a working set is not an uberproject, but it does help keep your projects organized in the package explorer.
- How to set up multiple source folders within a single Eclipse project?
- How to set multiple default source folders in Eclipse IDE for Java?
- How to combine multiple source folders to single entry in Package view of Eclipse
- eclipse jave project with two source directories - how to set the visibility of the source folders
- build.gradle for eclipse project with multiple source folders
- TFS eclipse plugin fails to check in changes that span Multiple Folders within a project
- Multiple Source Folders for Eclipse Java Project & Maven
- How to create a project from existing source in Eclipse and then find it?
- How can I get Eclipse to index an entire C/C++ source tree that contains multiple "make projects"?
- Building multiple binaries within one Eclipse project
- Eclipse 3.4 GWT 1.6 project - how to reference source from other projects?
- How do I set a folder as a Source Folder in Eclipse with Gradle?
- How to change order of source folders in Eclipse / SpringSource Tool Suite
- Eclipse - how to simultaneously switch working set for project explorer, call hierarchy, and search?
- How to setup an Eclipse Project with multiple Subprojects (OSGi-Bundles)
- Can Eclipse have multiple output folders just like multiple source folders
- Eclipse: how to keep project source files and ant build.xml seperate from eclipse workspace?
- How to copy multiple projects into single folder in eclipse
- How to remove Eclipse project related files without deleteing the source from Eclipse
- How do I add multiple source folders to a JAR?
- How to set heap size in spark within the Eclipse environment?
- How to set Eclipse project as read-only?
- Eclipse: multiple project from single source
- Eclipse CDT : How to manage multiple main() functions in a single C++ project?
- How to set up spring source code for debugging in eclipse
- How to run tomcat within eclipse Java Project
- Eclipse - how to set javadoc warnings only to specific folders, not the whole project
- How can I reference libraries in another project within Eclipse Helios?
- Multiple eclipses for different feature set or single eclipse contains all plug-ins?
- m2eclipse: How to set Eclipse project settings when importing a maven project?
More Query from same tag
- Using tabHost and go to a specific tab when I click on button in eclipse
- Mule ESB Database connector (JDBC) error:
- Grails controllers being installed automatically & causing 500 Server Error on war deployment
- android ArrayList is empty after getter method
- Java process inputstream in thread
- what is difference between kind="con" and kind="src " in buildpath reference
- jenkins vs eclipse-junit: no tests found in
- How to run Tests in Groovy
- Using windowbuilder to learn swing. A bad idea?
- Delay in Kafka Log4j appender
- Making items in Minecraft 1.12.2 do something when I press a button
- Unable to install ADT plugin in Eclipse?
- PropertyPlaceholderConfigurer works from Maven command line, but not from Eclipse?
- How to install the GlassFish 3 server adapter with Eclipse Helios 3.6
- adding admob jar file and class not found error
- eclipse (ADT) theme broken after installing subversive plugin
- How to access the jar placed inside lib\ext directory in Eclipse?
- Unable to debug on Eclipse in Ubuntu
- Circular Dependencies in Eclipse Platform
- Getting javadoc for Google Wave robot programming in Eclipse
- spring longpolling example code?
- maven to package app jar, create project classpath, goals
- From Eclipse to Android Studio
- Why isn't a new created file local?
- 'org.openide.util.NbBundle' causing problems
- Using GitHub and Eclipse to pull code
- Eclipse Django Plugin
- Eclipse error: JRE is selected, but the path is invalid
- Nutch/Hadoop: regex-normalize.xml and regex-urlfilter.txt not found error even though they exist
- Eclipse formatter: how do I format arrays in annotations