This article describes how to add a Java Platform to NetBeans under Mac OS X. This enables you to compile and run your applications under different virtual machines and also to associate Javadocs and source code with a Java platform so that they can be used by NetBeans for code generation and in-context tips and documentation.
These steps assume that you are running NetBeans 6
- Select Tools -> Java Platform
- Click the Add Platform… button. This will open the Add Java Platform window. Here you will seen all of the Java Platforms that are installed your system.
- Drill down until you find the Home folder. Select it and click the Next button.
- If you have locally stored copies of source or Javadocs you can associate those with the platform using the Browse buttons. Click the Finish button when you’re done.
- Click the Close button.
- You can now select this platform for a project by right-clicking a project and selecting Properties. The setting is under the Libraries node.