Hi!
I have spent way too much time trying to get Xcode to build a simple Hello World java application using Java 1.5.
Everything everyone else has said is quite good but I have one more tip.
If you build a simple java application using the "Ant-based Application Jar" template, the actual template has a build.xml file that contains source="1.3" target="1.3" as parameters for javac.
So, what I did was copy the entire folder:
/Library/Application Support/Apple/Developer Tools/Project Templates/Java/Ant-Based Application Jar/
to:
/Library/Application Support/Apple/Developer Tools/Project Templates/Java/Ant-Based Application Jar 1.5/
Then, I edited the included build.xml (in the copy) by changing source="1.3" target="1.3" to source="1.5" target="1.5" .
Now when I create a new project, I can choose between the two templates based upon whether or not I need 1.5.
Hope this helps (and I hope it is correct).
And here is the great Xcode "Hello World!" walkthrough from Sun:
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/mac.html
-- Charlie
iBook G4 Mac OS X (10.4.7)
iBook G4 Mac OS X (10.4.7)
iBook G4