|
Re: xcode, javac, and 101 errors: msg#01595java-dev
On 7/30/09, Mike Swingler <swingler@xxxxxxxxx> wrote: > On Jul 30, 2009, at 4:10 PM, Ray Sanders wrote: > >> On 7/30/09, Mike Swingler <swingler@xxxxxxxxx> wrote: >> >>> On Jul 30, 2009, at 9:43 AM, Ray Sanders wrote: >>> >>>> Hello all, >>>> >>>> I have a rather large (to me) java project that I've been working on >>>> for a few years. Lately, the xcode java environment is generating >>>> spurious errors which are not real. Whatever is causing the problem, >>>> it can be reset by doing a Clean/Build. After I do that, I get 1 - >>>> 10 >>>> normal builds, before the problem reappears, and I have to revert to >>>> Clean/Build. >>>> >>>> target of build is a java application >>>> >>>> environment: >>>> Version 3.1.2 (Xcode IDE: 1149.0, Xcode Core: 1148.0, ToolSupport: >>>> 1102.0) >>>> Mac OS X 10.5.6 >>>> MacBook 2.4 C2D, 4GB ram, ~90 GB free HD space, no VMware/BootCamp, >>>> lots of free ram. >>>> >>>> project: >>>> ~200 physical project files (.java and .properties) >>>> ~500 class definitions >>>> ~58k lines of java code >>>> >>>> This problem has only occurred in the last month or so, and seems to >>>> be getting more frequent (not to mention frustrating). The spurious >>>> errors are all (AFAICT) "Cannot find symbol". >>>> >>>> Anyone have any ideas or thoughts on how to resolve this ? >>> >>> We've had similar problems using Jam Xcode targets in the past with >>> compilations that bring in more that 100 .java files. >>> >>> Unfortunately, the only exhaustive solution is to reconstruct the >>> project file using Ant-backed external Xcode targets. I've also had >>> good success hauling a project's source files into a Java IDE like >>> Eclipse, and having it generate a build.xml file which I hand tweak >>> later so Xcode can kick it off. >> >> Is there some place, where I can read up to get a clue about how to >> implement the 'Ant-backed external Xcode targets' ? I understand what >> Ant is, but not how to integrate into my xcode build process. > > Just create a new Java Application from the templates, and it will > have a structure created for you already. Double-click into the bulls- > eye looking build target, and inspect where it calls /usr/bin/ant, and > how it passes parameters to it. > OK, I'm in much better shape now. My project has a completely new project file. I suspect that the previous project file was converted from CW9 (back in the days of PB or early xcode). Even after converting that, I still had random occurrences of 'Cannot find symbol'. That appears to have been caused by running ~600 class definitions in the default package. All my source files (excepting the one containing main) are now in a named package, and appear to be compiling (and executing) happily. many thanks Ray Sanders _______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (Java-dev@xxxxxxxxxxxxxxx) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/maillists%40codeha.us This email sent to maillists@xxxxxxxxx
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |