title: Java package folders with a dot in the name
body: <p>Is it by spec that, given a <code>MyClass.java</code> file containing</p>
  
  <pre><code>package com.mycorp.foo;
  
  public class MyClass {
    public static void main (String[] args) {
      System.out.println("Hello, world!");
    }
  }
  </code></pre>
  
  <p>in the following path (note the dot in the folder name):</p>
  
  <pre><code>./com/mycorp.foo/MyClass.java
  </code></pre>
  
  <p>the following works fine:</p>
  
  <pre><code>$ javac com/mycorp.foo/MyClass.java
  </code></pre>
  
  <p>producing <code>./com/mycorp.foo/MyClass.class</code> while this doesn't work:</p>
  
  <pre><code>$ java com.mycorp.foo.MyClass 
  Exception in thread "main" java.lang.NoClassDefFoundError: com/mycorp/foo/MyClass
  Caused by: java.lang.ClassNotFoundException: com.mycorp.foo.MyClass
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  </code></pre>