Netbean + JDK + modules

I am using openSUSE 11.1 and netbeans 6.5 from the Education repository.

I’m getting this error whenever I run netbeans.
Quote:The JDK is missing and is required to run some NetBeans modules
Please use the --jdkhome command line option to specify a JDK installation or see NetBeans Wiki: FaqRunningOnJre for more information.

I went to the netbeans site and I came across a solution that doesn’t seem to work for my installed Java run-times.

/usr/bin/netbeans --jdkhome /usr/lib64/jvm/jre-1.6.0-sun

I tried changing the path to the jdkhome many times but netbeans still does not load properly.

These are the following directories in my /usr/lib/64/jvm

java
java-1.5.0
java-1.5.0-gcj
java-1.5.0-gcj-4.3-1.5.0.0
java-1.6.0-openjdk-1.2_b11
java-1.6.0-openjdk-1.6.0
java-1.6.0-sun-1.6.0
java-gcj
jre
jre-1.5.0
jre-1.5.0-gcj
jre-1.6.0
jre-1.6.0-openjdk
jre-1.6.0-sun
jre-gcj
jre-openjdk
jre-sun

I’m not sure which one I’m supposed to use because I’ve tried many of them and still I get the same error.

But this: java-1_6_0-sun-devel is missing.

ps.: wipe out those openjdk things, just a waste of space you’ll never use it - it can be confusing sometimes…

Thank you ram88!

I installed java-1_6_0-sun-devel and all the modules loaded up fine

I am using /usr/lib64/jvm/java-1.6.0-sun-1.6.0/ path for my netbeans_jdkhome

Just one more thing though, I installed netbeans-extra for the NetBeans UML support but it doesn’t seem to be in the project list. Is there a way of adding that module in?
I just added it from the plugins list.

Good to hear that it’s worked! Happy coding! :slight_smile:

Thanks! It worked!