Cannot find Java. Please use --jdkhome to switch the jdk path

Hello everyone!

This error shows up when I try to run Netbeans (OS independent Zip) and I have no idea what could be the problem. I do have installed java jdk 7 in my computer but this path :
netbeans_jdkhome="/usr/lib/jvm/java-7-openjdk-i386"

This path doesn't work, I mean "java-7-openjdk-i386" is the folder where is located. So, Wheter I'm writing the wrong path or I have to add something to it I need your help!! How can I do to make it work?PD: I'm using lubuntu 14.04

Re: Cannot find Java. Please use --jdkhome to switch the jdk path

Thank you ofnuts but unfortunately usr/bin also doesn't work, at least, when you say "it should point somewhere" inside the folder bin, so what archive should I put? I tried with usr/bin/java to fix it, however, as I mentioned it doesn't worked too!
I thing my problem is I am putting the wrong path because I don't know if I should put the whole folder where java jdk is located or directly to the archive...
In conclusion, Can you help me to write the correct path to jdk?

Re: Cannot find Java. Please use --jdkhome to switch the jdk path

I just wrote the path like this: usr/lib/jvm/java-7-openjdk-i386/jre and netbeans loaded(very slow but it loaded), nevertheless, another problem just came out, some modules can't load. Would it be the same problem? I hope no...

P.D. I tried usr/lib/jvm/defalut-java also and the same situations with modules.

Re: Cannot find Java. Please use --jdkhome to switch the jdk path

Originally Posted by dylan0005

I just wrote the path like this: usr/lib/jvm/java-7-openjdk-i386/jre and netbeans loaded(very slow but it loaded), nevertheless, another problem just came out, some modules can't load. Would it be the same problem? I hope no...

Probably not. Just open another thread.

P.S. Have you tried to build your project without the need of an IDE? It would not hurt you to learn how the silly IDE does things.