./
means "this directory". If you've moved it somewhere else you either need to change directory with cd
:
cd /media/hosam/I/Linux
./netbeans-7.4-linux.sh
Or give the full path when calling it:
/media/hosam/I/Linuxnetbeans-7.4-linux.sh
You'll also need to make sure it has been marked executable. You can do this through the right click properties menu in Nautilus or by running
chmod +x /media/hosam/I/Linuxnetbeans-7.4-linux.sh
If that still doesn't work, it seems likely that the filesystem it's sitting on is probably mounted in such a way that prevents files being directly executed. That leaves you with a few options:
- Call
sh /media/hosam/I/Linuxnetbeans-7.4-linux.sh
explicitly (this doesn't need execute permissions)
- Remount the
/media/hosam/
filesystem as executable. If it's NTFS, see this
- Or move the file to a filesystem that will support it being
chmod +x