<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">...</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
but when i tried javac command it gives following error<br>
<br>
root@S13:/home/nika/Downloads# javac<br>
bash: /usr/bin/javac: Permission denied<br>
<br>
so i remove it using<br>
<br>
root@S13:/home/nika/Downloads# update-alternatives --remove-all javac<br>
<br>
<br>
can i get some help?<br>
<br>
Regards<br>
Navdeep Singh</blockquote></div><div><br></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">FYI Oracle's licence to distros (ubuntu?) for distrubuting JDK (sun-jdk) has elapsed and canonical has removed it from the repository, however OpenJDK is still there.</font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">Since Oracle itself now considers OpenJDK the reference implementation for java perhaps try installing openjdk instead? It may sort out your alternatives issue as well.</font></div>
<div><br></div><div>$ sudo apt-get install openjdk-6-jdk</div><div>- or the newer -</div><div>$ sudo apt-get install openjdk-7-jdk</div><div><br></div><div><span class="Apple-style-span" style="color:rgb(34,34,34);font-family:arial,sans-serif">I've been using it with netbeans and haven't found any problems, even on complex J2EE projects.</span></div>
<div><br></div><div>I can also see you're actively working in a root account, that might have had an impact on the permissions of the installed components (did you use the installer manually downloaded from oracle?); it will be a headache to fix.</div>
<div>It's generally preferred to use 'sudo' and 'apt-get' to manage packages, for instance to prevent this sort of problem.</div><div><br></div><div>Unfortunately we have to install netbeans with the installer downloaded from <a href="http://netbeans.org">netbeans.org</a> (it seems not to be in the repo anymore) - but netbeans is not your problem.</div>
<div><br></div>-- <br>Péter Nel<br><br>