Why and how are the various .classpath file modified? That’s the first place I’d look to resolve Eclipse build problems.
At a higher level, I think http://quarks.incubator.apache.org/docs/quarks-getting-started.html <http://quarks.incubator.apache.org/docs/quarks-getting-started.html> is perhaps (implicitly) describing an environment where the building of Quarks isn’t performed in the same Eclipse workspace as the Quarks application you’re trying to create. (though this can work. more below) e.g., “Downloading Apache Quarks” => download quarks and build via ant as described in the DEVELOPMENT.md. Don’t even bother with Eclipse for that part. “Setting up your environment” => create an Eclipse workspace, and follow the rest of the directions. Configure it to use the ant created jars from the first step. On the “all in one workspace” flow... So I just tried doing everything from a single Eclipse workspace and it worked fine: - built Quarks from a git repo clone in Eclipse. You also need to run the ant build to generate the jars that the “getting started” flow describes using. e.g., in Eclipse select _gradle > build.xml > Run as > Ant Build. Or run ant from the command line. - used the same Eclipse workspace for “Setting up your environment”. For the new project’s setup, use “Add External Jars” to select the jars build above (e.g., from ~/git/incubator-quarks/target/java8/lib). I didn’t try this with (a) building Quarks from a download instead of a clone (there was a recent build.xml fix for that, though it doesn’t seem like you’re encountering that problem) and/or (b) configuring the new project’s classpath to depend on the various Quarks projects in the workspace (though I can’t think of any reason why that wouldn’t work). Hope that helps — Dale > On Jun 7, 2016, at 10:38 AM, Susan Cline <[email protected]> wrote: > > Thanks for your response. > > I do have a utils in my .classpath file, but it is not /utils > > <classpathentry kind="src" path="utils”/> > > Closing and opening the project does not fix the problem. > > Susans-MBP-429:incubator-quarks susancline$ git status > On branch master > Your branch is up-to-date with 'origin/master'. > Changes not staged for commit: > (use "git add <file>..." to update what will be committed) > (use "git checkout -- <file>..." to discard changes in working directory) > > modified: connectors/.classpath > modified: console/.classpath > modified: providers/.classpath > modified: providers/.project > modified: samples/.classpath > modified: test/.classpath > modified: utils/.classpath > > I don’t have a top level project, I just have individual projects. > > What I am trying to accomplish is to perform a build in eclipse. It seemed > like something new users might want - to have all of their eclipse projects > build without errors. Following the instructions here: > > http://quarks.incubator.apache.org/docs/quarks-getting-started.html > > are not clear, and I thought it would be good to clarify these instructions > for new users so everything builds correctly. > > Thanks, > > Susan > > >> In your eclipse workspace, with Eclipse building quarks, it’s >> providers/.classpath that makes StreamsScopeTest.class available when >> DevelopmentStreamScopeTest is built. That .classpath include a “src” entry >> for /utils. And >> utils/streamscope/test.classes/quarks/test/streamscope/StreamScopeTest.class >> should be present. >> >> I’m unclear in what you’re trying to — what sort of thing this new project >> constitutes. What’s in the new project’s .classpath? >> >> If you “close” your new project, does the workspace still have build >> problems? What does “git status” report? >> >> — Dale >> >> >>> On Jun 6, 2016, at 3:26 PM, Susan Cline <[email protected]> wrote: >>> >>> Hi, >>> >>> I’m trying to set up a new project in eclipse for quarks. After adding the >>> target/java8/lib jars to most of my projects everything seems to be >>> building in Eclipse correctly except for DevelopmentStreamScopeTest.java. >>> >>> It is looking for StreamScopeTest.java, which is under >>> utils/streamscope/src/test/java/quarks/test/streamscope. >> >
