web-dev-qa-db-ja.com

UbuntuのNetbeansはどこにインストールされていますか?

Ubuntu 11.10マシンにNetbeansをインストールしました。結合方式を使用したため、NetbeansとJDKは 単一ファイル からインストールされます。しかし、インストールされたので、Netbeansの起動方法がわかりません。再インストールしようとすると、Netbeansがすでにインストールされていると表示されますが、/usr/share/netbeansインストールファイルがありますが、それ以外はありません。 Netbeansを実行するにはどうすればよいですか?

14
tmedtcom

それを探す:

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

場所を取得すると、インストールされます。そうでない場合は、1ファイル方式ではなくaptを使用してインストールすることをお勧めします。

15
n0pe

netbeansインストーラーがシンボリックリンクを追加し忘れたようです

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

インストールスクリプトがこれを行うと、ユーザーの生活が楽になります。

(netbeansのバージョンをアップグレードするときに、symlinkを更新することを忘れないでください)

10
bsd

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;

ネットビーンズ...

#!/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;
1
thejartender
cd /usr/local/netbeansx.x/bin
./netbeans
1
Franco

デフォルトでは、11.10でUnityを実行しています。 Meta (Windowsキー)、netbeansと入力し、

Netbeansに関連するエントリがいくつか表示されるはずです。

0
daisy

whichコマンドを使用して、インストールされているアプリケーション(バイナリ)の場所を確認します。

例えば.

$which netbeans
0
electropoet