check the permissions on the javac file (probably you don't have execute
privileges)

On Thu, Jan 19, 2012 at 1:04 PM, Navdeep Singh Sidhu <
[email protected]> wrote:

> hello
>
> Recently i reinstalled ubuntu on my laptop & when i try to install
> netbeans on it, it's installer says compatible JDK not found but i had
> installed JDK 1.7.0_02 on it & i followed these commands
>
> root@S13:/home/nika/Downloads# update-alternatives --config javac
> update-alternatives: error: no alternatives for javac.
> root@S13:/home/nika/Downloads# update-alternatives --install
> /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_02/bin/javac 1
> update-alternatives: using /usr/lib/jvm/jdk1.7.0_02/bin/javac to provide
> /usr/bin/javac (javac) in auto mode.
>
> but when i  tried javac command it gives following error
>
> root@S13:/home/nika/Downloads# javac
> bash: /usr/bin/javac: Permission denied
>
> so i remove it using
>
> root@S13:/home/nika/Downloads# update-alternatives --remove-all javac
>
>
> can i get some help?
>
> Regards
> Navdeep Singh
>
> --
> ubuntu-in mailing list
> [email protected]
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
>
>
-- 
ubuntu-in mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in

Reply via email to