PDA

View Full Version : Add Platform in Netbeans



akoskm
January 28th, 2013, 09:56 AM
Hi Community!

I'm trying to find out how to add a freshly installed OpenJDK 7 platform (installed through software center) to NetBeans 7.2.

When I navigate to Tools > Java Platforms > Add Platform and select the /usr/lib/jvm directory the JDK installations are showing up but except the /usr/lib/jvm/java-1.6.0-openjdk-amd64 and /usr/lib/jvm/java-6-openjdk-amd64 the Next button is greyed out when I'm selecting the JDK7 folders.
http://i47.tinypic.com/2urxcer.png

Is there any way to add the OpenJDK platform to Netbeans 7.2?

iMac71
January 28th, 2013, 12:15 PM
you might give a look to what's suggested in the following thread: Installing jdk in ubuntu 12.04 (64 bit).

akoskm
January 28th, 2013, 12:55 PM
you might give a look to what's suggested in the following thread: Installing jdk in ubuntu 12.04 (64 bit).

Installation of the OpenJDK 1.7 went fine through software center. It is installed into the same folder as 1.6 (see the screenshot).
I have problem when I'm trying to add jdk 7 as new platform in NetBeans.

iMac71
January 28th, 2013, 02:32 PM
As you can read in this post of netbeans forum (http://netbeans.org/bugzilla/show_bug.cgi?id=210664), there are problems using openjdk-7-jdk with netbeans on ubuntu.

dennismulder
February 17th, 2013, 10:11 PM
I've got the exact same problem, did you solve it?

slickymaster
February 18th, 2013, 12:28 PM
Hi Community!

I'm trying to find out how to add a freshly installed OpenJDK 7 platform (installed through software center) to NetBeans 7.2.

When I navigate to Tools > Java Platforms > Add Platform and select the /usr/lib/jvm directory the JDK installations are showing up but except the /usr/lib/jvm/java-1.6.0-openjdk-amd64 and /usr/lib/jvm/java-6-openjdk-amd64 the Next button is greyed out when I'm selecting the JDK7 folders.
http://i47.tinypic.com/2urxcer.png

Is there any way to add the OpenJDK platform to Netbeans 7.2?

You can edit the netbeans.conf file and change 'netbeans_jdkhome=' value according to your JDK location. Something like this:

netbeans_jdkhome="path/to/your/JDK/location"