Follow the below steps.
- sudo gedit /usr/share/applications/.desktop OR sudo gedit /usr/share/applications/netbeans.desktop
- Paste the below code in the above file.
[Desktop Entry] Name=Netbeans Comment=Netbeans IDE Exec=/usr/local/netbeans-8.0.2/bin/netbeans > %U [Here you have to paste your Netbeans Path] Icon=/usr/local/netbeans-8.0.2/nb/netbeans.png [paste your Netbeans logo path] Terminal=false Type=Application Categories=Development,IDE; StartupNotify=false
This is the essential information, you can add more details such Icon and categories later.
%U is very important after the Exec command without it the application won't appear in
other applications list.
3. After that, put the file in
/usr/share/applications/ (need root privileges) and it should appear in the Dash when you type the name.
4. Now go to any
.php file, right click on it and choose
properties -> open with -> show other application -> select your app.
5. Enjoy coding! :)