I am trying to to configure java sdk on ubuntu 12.04.
I ha/ve copied the jdk folder to
and made a link as "sudo ln -s -b /usr/lib/java/jdk1.7.0_45/bin/javac /etc/alternatives/javac" and "sudo ln -s -b /usr/lib/java/jdk1.7.0_45/bin/javac /bin/bin/javac"
but when i try to run command "javac" it doesn't run. however it runs as "sudo javac" correctly. how can i make it run without sudo