Set Netbeans as Default IDE in Linux Ubuntu

Step 1: Open terminal and goto the following directory,
cd /usr/share/applications/
 Step 2: Find and list netbeans.desktop file
ls -al | grep netbeans
Step 3: Open and Edit netbeans.desktop file and Just add %U at the end of line begins with Exec
vim netbeans <version>
Exec=/bin/sh "/usr/local/netbeans-8.0.2/bin/netbeans" %U
Now, Right click a file -> Properties -> Open with, here you can see Netbeans in the list.

Hence, Set Netbeans as Default Application.
Ubuntu Linux Netbeans Posted on 2016-04-13 02:41:06