Xcode Java Projects in J2SE 5.0
The Java projects in Xcode are set up for use with J2SE 1.4.2.
Follow these steps to modify projects for use with J2SE 5.0:
Double click the target to edit and provide /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/javac as the value for the JAVA_COMPILER build setting. Change the Target VM Version and Source
Version in the Java Compiler
Setting to use 1.5.
Double click the executable named java and enter /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java as the Executable Path in the General tab of Executable info.
Double click the executable named appletviewer and enter /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/appletviewer as the Executable Path in the General tab of Executable info.
J2SE 5.0 Reference Documentation
The J2SE 5.0 Reference Documentation is not installed automatically.
Install the latest J2SE 5.0 Developer package, available from http://connect.apple.com.
Note: J2SE 5.0 symbols are not used in the Xcode Documentation window by default. To use the 5.0 symbols instead of the 1.4.2 symbols, you need to modify which version of Java is indexed. To do this, follow the directions outlined in the workaround for “Radar #4124800.”
J2SE 5.0 symbols not visible in Xode Documention window.
After installing the J2SE 5.0 Reference documentation or a documentation update in Xcode, J2SE 5.0 symbols are not present in the Xcode documentation window.
You need to manually run the pbhelpindexer utility in order for J2SE 5.0 symbols to appear in the Xcode Documentation window. First, open MacOSXDeveloper.pbHelpIndexerList, located at:
/Developer/ADC Reference Library/indexes/ |
Replace this path:
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Resources/ |
With this path:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Resources/ |
Finally, run this command in Terminal:
sudo /Developer/Tools/pbhelpindexer |
Last updated: 2005-10-04