title: Where is Java CLASSPATH in OSX?
body: <p>I have this file in my Home Directory on OSX:</p>
  
  <pre><code>public class TestClass {
      public static void main(String[] args){
          System.out.println("Hello World");
      }
  }
  </code></pre>
  
  <p>and in Bash I am running:</p>
  
  <pre><code>Korays-MacBook-Pro:~ koraytugay$ javac TestClass.java
  Korays-MacBook-Pro:~ koraytugay$ java TestClass
  Hello World
  </code></pre>
  
  <p>But I am wondering how the virtual machine instance running loads System from the CLASSPATH as my CLASSPATH environmental variable has no values:</p>
  
  <pre><code>Korays-MacBook-Pro:~ koraytugay$ echo $CLASSPATH
  </code></pre>
  
  <p>Well it returns an empty row. Nothing. When echo $PATH I will see:</p>
  
  <pre><code>Korays-MacBook-Pro:~ koraytugay$ echo $PATH
  /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
  </code></pre>
  
  <p>And java itself is in: </p>
  
  <pre><code>Korays-MacBook-Pro:~ koraytugay$ whereis java
  /usr/bin/java
  </code></pre>
  
  <p>So in Windows java will look for the directories of CLASSPATH as far as I know. How does it work in OSX? How can Java load classes without the CLASSPATH variable?</p>