在Ubuntu上哪里安装了Netbeans?


14

我在Ubuntu 11.10机器上安装了Netbeans。我使用了组合方法,因此从单个文件安装了Netbeans和JDK 。但是,既然已安装,我不知道如何启动Netbeans。如果我尝试重新安装,它说已经安装了Netbeans,但是如果我查看的话,/usr/share/netbeans那里有安装文件,但没有其他文件。如何运行Netbeans?


什么Logitech
xiaohan2012 2011年

我尝试进行编辑,但我根本无法弄清楚您的第二段
Michael Mrozek

Answers:


15

寻找它:

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

如果您找到位置,则说明已安装。如果没有,我建议尝试使用apt安装而不是单文件方法。


1
你让我今天一整天都感觉很好。
2012年

10

看起来netbeans安装程序忘记添加符号链接

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

如果安装脚本执行此操作,将使用户的生活更轻松。

(升级netbeans版本时,请不要忘记更新符号链接)



1

Netbeans之前的Java ...

#!/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

默认情况下,如果您按Meta(Windows键)在11.10中运行Unity ,然后输入netbeans

您应该能够看到与netbeans相关的条目很少。


0

您可以使用该which命令找出已安装的任何应用程序(二进制)的位置。

例如

$which netbeans
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.