[ubuntu-za] Need help in installation of JAVA & Netbeans !!

Miles msdomdonner at gmail.com
Thu Jan 19 08:46:19 UTC 2012


-----Original Message-----
From: Navdeep Singh Sidhu <navdeepsingh.sidhu95 at gmail.com>
Reply-to: Ubuntu South African Local Community
<ubuntu-za at lists.ubuntu.com>
To: ubuntu-in <ubuntu-in at lists.ubuntu.com>, ubuntu-users
<ubuntu-users at lists.ubuntu.com>, ubuntu-za <ubuntu-za at lists.ubuntu.com>
Subject: [ubuntu-za] Need help in installation of JAVA & Netbeans !!
Date: Thu, 19 Jan 2012 13:04:44 +0530

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 at S13:/home/nika/Downloads# update-alternatives --config javac
update-alternatives: error: no alternatives for javac.
root at 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 at S13:/home/nika/Downloads# javac
bash: /usr/bin/javac: Permission denied

so i remove it using

root at S13:/home/nika/Downloads# update-alternatives --remove-all javac


can i get some help?

Regards
Navdeep Singh

Hi Navdeep,
 
I'm no expert, but think you can chown that file to get permissions.
Look at man chown in terminal.
Miles





More information about the ubuntu-za mailing list