Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode compile problems



On Nov 15, 2007, at 3:37 AM, Lars Gislén wrote:
I am writing Java programs using XCode 3.0. However, I cannot even get this simple program to compile ("cannot find symbol"):
...
It seems the compiler doesn't recognizes String.format which it should using Java 1.5+. This program compiles perfectly on Tiger with XCode 2.4.1.

Also in XCode 2.4.1 you could easily set the Java version under the menu item Edit Target xx. I haven't found anything similar in XCode 3.0.

That threw me too, being new to Java in XCode. I found that XCode 3 appears to create only Ant-based Java projects and those have a number of strange interactions to deal with, including having to edit the build.xml file of a new project and change "1.2" and "1.3" to "1.5". I assume this is a bug.


Also I found that the source files can't be renamed or deleted through the project window-- they must be changed in the Finder and then have the src folder closed and reopened in the project to see the changes.

And I learned to be careful to not put a soft link in the dist directory and then do a clean: it surprisingly deletes what the link is pointing to.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >XCode compile problems (From: Lars Gislén <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.