FaqWhichSDK

(Difference between revisions)
Admin (Talk | contribs)
(Created page with '__NOTOC__ ===Is NetBeans configured only for the Sun JDK, or are there any other SDKs or compilers that NetBeans can work with?=== In principle, the NetBeans IDE should function…')
Newer edit →

Revision as of 22:43, 4 November 2009

Is NetBeans configured only for the Sun JDK, or are there any other SDKs or compilers that NetBeans can work with?

In principle, the NetBeans IDE should function with any compliant Java runtime meeting the 1.4 platform specification. For example, the JDK 5 port on Mac OS X works, and IBM's 1.4 JDK series for Linux should work though it is not often tested. Since most Java implementations are based on code licensed from Sun, most of the implementation tends to be the same anyway.

NB does not currently run on GCJ/Classpath, which still lacks a complete Java implementation, especially for Swing. It is possible however to run NB on a Sun JDK and still build and run applications against GCJ: FaqGcj

Building projects is done by running Apache Ant. By default, Ant looks for tools such asjavacor in the same Java runtime as Ant itself runs inside, using com.sun.** classes, so you will need to run the IDE in a full JDK, not a JRE. It is however possible to build and run applications using other tools and VMs: just for example, you can use IBM's Jikes to compile classes, and you can even build 1.1-compliant applications if you like: FaqJdk11

The integrated source debugger does need to have access to JDI classes in the IDE's virtual machine. The Sun JDK and all licensed JDK ports (1.4+) should include these classes.

Applies to: NetBeans 4.0, 4.1, 5.0, 5.5, 6.0, 6.0.1, 6.1

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo