Cambiar la plataforma java en la que se ejecuta netbeans


Estoy usando Netbeans 6.7. Primero había instalado Java 1.5 antes de instalar Netbeans. Cuando instalé Netbeans tomó Java 1.5 como la versión predeterminada. Luego instalé Java 1.6 en mi máquina. Necesito cambiar el JDK predeterminado de mis netbeans a 1.6 no solo a un proyecto específico sino a toda la aplicación Netbeans.

Author: Jan Hrcek, 2010-05-11

4 answers

Puede cambiar el JDK para Netbeans modificando el archivo de configuración:

  1. Abra el archivo netbeans.conf disponible en la carpeta etc dentro de la instalación de NetBeans.
  2. Modifique la variable netbeans_jdkhome para que apunte a una nueva ruta JDK, y luego
  3. Reinicie sus Netbeans.
 163
Author: Abdel Raoof,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-05-01 04:32:15

En mi caja de Windows 7 encontré netbeans.conf en <Drive>:\<Program Files folder>\<NetBeans installation folder>\etc. Gracias a todos.

 26
Author: Paulo Carvalho,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-07-06 13:48:23

Para cualquier persona en Mac OS X, puede encontrar netbeans.conf aquí:

/Applications/NetBeans/NetBeans <version>.app/Contents/Resources/NetBeans/etc/netbeans.conf

En caso de que alguien necesite saber :)

 21
Author: shousper,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-11-01 23:50:26

Abra la carpeta etc en la carpeta netbeans y luego edite los netbeans.confórmese con el bloc de notas y encontrará una línea como esta:

Ubicación predeterminada de JDK, puede ser anulado mediante el uso de j jdkhome :
netbeans_jdkhome="G:\Program Archivos\Java\jdk1.6.0_13"

Aquí puede configurar su versión jdk.

 11
Author: Mohamad Alhamoud,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-01-19 03:23:05