¿Dónde está instalado Netbeans en Ubuntu?


14

Instalé Netbeans en mi máquina Ubuntu 11.10. Usé el método combinado, por lo que Netbeans y JDK se instalan desde un solo archivo . Sin embargo, ahora que está instalado, no puedo entender cómo iniciar Netbeans. Si intento reinstalarlo, dice que Netbeans ya está instalado, pero si miro /usr/share/netbeansallí están los archivos de instalación, pero nada más. ¿Cómo ejecuto Netbeans?


¿Qué es Logitech?
— xiaohan2012

Traté de editar esto, pero no pude entender tu segundo párrafo en absoluto
— Michael Mrozek

Respuestas:


15

Búscalo:

sudo find / -name netbeans 2> /dev/null

Si obtienes una ubicación, está instalada. Si no es así, sugeriría intentar usar la aptinstalación en lugar del método de un archivo.


1
Me has alegrado el día.
— cantidad

10

parece que el instalador de netbeans olvidó agregar un enlace simbólico

ln -s /usr/local/netbeans-7.0.1/bin/netbeans /usr/local/bin/netbeans

Hubiera hecho la vida más fácil para los usuarios si el script de instalación hiciera esto.

(no olvide actualizar el enlace simbólico cuando actualice la versión de netbeans)



1

Java antes de Netbeans ...

#!/bin/sh

#Delete the line below if you only want the "open" JDK & JRE
sudo apt-get install openjdk-7-jdk openjdk-7-jre;

#Makes the /usr/lib/jvm in case...
sudo mkdir -p /usr/lib/jvm

#Clean out /tmp...
sudo rm -rf /tmp/*
cd /tmp

#Update this line to reflect newer versions of JDK...
wget http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.tar.gz;
tar -xvf ./*gz;

#Move it to where it can be found...
sudo mv /tmp/jdk1.7.* /usr/lib/jvm/;

#Add the new Java to the bin 
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_01/jre/bin/java 3;

#User chooses
sudo update-alternatives --config java;

exit 0;

Netbeans ...

#!/bin/sh
# @author Yucca Nel
# Update as needed for newer Netbeans releases :D

#!/bin/sh

#Clean out /tmp...
sudo rm -rf /tmp/*;
cd /tmp;

# Update this line to reflect newer versions of Netbeans or replace 
# 'javase with 'javaee' or add jee manually via Netbeans 'plugins as needed.
wget http://download.netbeans.org/netbeans/7.0.1/final/bundles/netbeans-7.0.1-ml-javase-linux.sh;
sh /tmp/*sh;

# Add Netbeans launcher to your PATH. Doing so allows you to run 
# 'netbeans' command from the terminal
sudo ln -s ~/netbeans-7.0.1/bin/netbeans /usr/local/bin/;

# If you use VirtualBox , you can share your projects between 
# Host and guest. Name of shared folder must match 'NetBeansProjects' 
# Remove this if you don't need...
sudo mkdir ~/NetBeansProjects;
sudo mount -t vboxsf NetBeansProjects ~/NetBeansProjects;
exit 0;

0

Está ejecutando Unity en 11.10 de forma predeterminada, si presiona la Meta(tecla de Windows) y escribe netbeans,

Debería poder ver algunas entradas relacionadas con netbeans.


0

usa el whichcomando para averiguar la ubicación de cualquier aplicación (binaria) instalada.

p.ej

$which netbeans
Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.