problem with netbeans 6.1

Hi all
I am using Opensuse 11.0 and just now installed eclipse and netbeans from the required repositories using zypper…

My system is perfectly working with eclipse but my netbeans is not working …i mean it’s not opening…



harsha4u@linux-s1b4:~> netbeans
Cannot find java. Please use the --jdkhome switch.


Please tell me what to do…

These are the packages in relation to java…



harsha4u@linux-s1b4:~> rpm -qa | grep -i java

ant-javadoc-1.7.0-115.1
java-1_6_0-sun-1.6.0.u6-8.1
gcc-java-4.3-39.1
netbeans-java-6.1-4.4
gcc43-java-4.3.1_20080507-9.1
java-1_5_0-gcj-compat-1.5.0.0-65.1
java-1_5_0-gcj-compat-devel-1.5.0.0-65.1
java-1_6_0-openjdk-1.2_b09-9.1
ant-javamail-1.7.0-132.1
java-1_6_0-sun-plugin-1.6.0.u6-8.1


waiting for reply…

edit the file netbeans.conf

for this line, specify where is your jdk
netbeans_jdkhome=

You have a number of less than perfect Java implementations on your system. The one you need for netbeans is java-1_6_0-sun-1.6.0.u6-8.1 (should be u7 by now, but there you go). If I were you, I would remove everything except that and java-1_6_0-sun-plugin-1.6.0.u6-8.1. However, you may not be able to.

In any case, specify the kosher sun distribution of java, as pointed out in the previous reply above, in $NB_HOME/etc/netbeans.conf.

netbeans_jdkhome is the installation directory for the JDK.

my i have

rpm -qa | grep -i java
java-1_6_0-openjdk-1.2_b09-9.1
jogl-javadoc-1.1.1-0.pm.1
java-1_6_0-sun-devel-1.6.0.u7-1.1
java-1_6_0-openjdk-plugin-1.2_b09-9.1
java-1_6_0-sun-1.6.0.u7-1.1

in my netbeans.conf

netbeans_jdkhome="/usr/lib64/jvm/java"

so you have choice to start set a value there… or like the message you get, to start netbeans with --jdkhome <dir of your jdk>