Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans installation doesn't find JDK [closed]

Tags:

installing Netbeans 6.0.1 on my windows computer, I find this error:

enter image description here

Even if I my enviroment variables seems to be ok, when executing: enter image description here

I rebooted my system, but the error persists. Does anybody know why?? Thans in advance

like image 733
Blanca Hdez Avatar asked Feb 06 '11 16:02

Blanca Hdez


People also ask

Can we install NetBeans without JDK?

To use NetBeans for Java programming, you need to first install Java Development Kit (JDK).

How do I find where JDK is installed?

Select the appropriate JDK software and click Download. The JDK software is installed on your computer, for example, at C:\Program Files\Java\jdk1. 6.0_02.

Is JDK included in NetBeans?

NetBeans IDE supports JDK 8 features, such as lambda expressions, repeatable annotations, compact profiles, etc. When these constructs are used in your code, the IDE recognizes them, correctly highlights errors, and lets you automatically fix syntax.


2 Answers

This is only due to javahome path missing.

Use the command line below:--

For Windows OS- Open your command prompt

netbeans-6.5.1-windows.exe --javahome "C:\\Program Files\Java\jdk1.5.0" 

For Linux OS- Open your Terminal

netbeans-6.5.1-windows.sh --javahome /usr/jdk/jdk1.6.0_04 

The problem solved.

like image 196
JDGuide Avatar answered Sep 27 '22 21:09

JDGuide


If you are certain that you have a JDK installed (and not a JRE), you can specify the location of the JDK on the commandline when starting the installer (as mentioned in the error message you get).

These FAQ entries might also help you:

http://wiki.netbeans.org/FaqInstallJavahome
http://wiki.netbeans.org/FaqSuitableJvmNotFound

like image 42
a_horse_with_no_name Avatar answered Sep 27 '22 21:09

a_horse_with_no_name