h1

Adding a Java Platform to NetBeans Under Mac OS X

October 13, 2007

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

  1. Select Tools -> Java Platform
  2. 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.
  3. Drill down until you find the Home folder. Select it and click the Next button.
  4. 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.
  5. Click the Close button.
  6. You can now select this platform for a project by right-clicking a project and selecting Properties. The setting is under the Libraries node.
  7. Finished

Screenshots:

Java Platform ManagerAdd Java PlatformAdd Java Platform 2Project Properties Library

    Advertisements

    6 comments

    1. Hi,
      My name is James Branam and I’m the NetBeans Community Docs Manager. Your blog entry would make a fantastic tutorial for our Community Docs wiki (http://wiki.netbeans.org/wiki/view/CommunityDocs). Would you be willing to contribute it? If you need any help or have any questions, please contact me at james.branam@sun.com. I look forward to hearing from you.


    2. Very good tutor for newbie alike


    3. I am trying to build a j2me application on OSX 10.3. I succeeded in X-Code, but I prefer Netbeans.
      My problem in adding a platform in Netbeans 5.0 is to find “the home folder”, I have put my midlet jar files in /usr/local/midp directory. But Netbeans 5.0 doesn’t recognise it as a home folder.
      Maybe some explanation about “home folder” would help.


    4. Carl-

      I have not had any success building J2ME applications on Mac OS X. I’ve been told by some at Sun that there are binaries and legal reasons why the development kit is only available for Windows.

      I have, however, been using Android recently on Mac OS X under Eclipse. I would love to see some Android support under NetBeans as well.

      Josh


    5. I usually do not even know how I finished up right here, however I was thinking this post was good.
      I don’t recognize who you happen to be but definitely you’re traversing to a well-known blogger if however,
      you are not already ;) Cheers!


    6. I regard something genuinely special out of
      this web page.



    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: