title: Linux- javac Command Not Found
body: <p>I use puTTy to connect to a remote server running Linux. When I run</p>
  
  <pre><code>abc@myName((/home/myName)$java -version
  </code></pre>
  
  <p>I get the following</p>
  
  <pre><code>java version "1.7.0_80"
  Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
  Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
  </code></pre>
  
  <p>Then I used <code>readlink -f $(which java)</code> to find the location of the java command and I got the location as <code>/opt/jdk1.7.0_80/bin/java</code>.</p>
  
  <p>Now I navigated to this location and listed the files</p>
  
  <pre><code>abc@myName(/opt/jdk1.7.0_80/bin)$ls
  appletviewer  idlj       javac           javap         jconsole  jinfo    jps         jstat      native2ascii  rmic         serialver   wsgen
  apt           jar        javadoc         java-rmi.cgi  jcontrol  jmap     jrunscript  jstatd     orbd          rmid         servertool  wsimport
  ControlPanel  jarsigner  javafxpackager  javaws        jdb       jmc      jsadebugd   jvisualvm  pack200       rmiregistry  tnameserv   xjc
  extcheck      java       javah           jcmd          jhat      jmc.ini  jstack      keytool    policytool    schemagen    unpack200
  </code></pre>
  
  <p>Then I tried the following</p>
  
  <pre><code>abc@myName(/opt/jdk1.7.0_80/bin)$javac
  </code></pre>
  
  <p>And got</p>
  
  <pre><code>-bash: javac: command not found
  </code></pre>
  
  <p>Could someone help me with this?</p>