title: Where to get com.sun.j3d classes
body: <p>I have found some code snippet in the internet. But it is missing some classes. Where can I get the missing classes?</p>
  
  <p>These are the errors I get:</p>
  
  <pre>
  package com.sun.j3d.utils.universe.SimpleUniverse doesn't exist
  package com.sun.j3d.utils.geometry.ColorCube doesn't exist
  package javax.media.j3d.BranchGroup doesn't exist.
  </pre>
  
  <p>Here is the code :</p>
  
  <pre><code>import com.sun.j3d.utils.universe.SimpleUniverse;
  import com.sun.j3d.utils.geometry.ColorCube;
  import javax.media.j3d.BranchGroup;
  
  public class Hello3d {
  
      public Hello3d()
      {
  
          SimpleUniverse universe = new SimpleUniverse();
          BranchGroup group = new BranchGroup();
          group.addChild(new ColorCube(0.3));
          universe.getViewingPlatform().setNominalViewingTransform();
          universe.addBranchGraph(group);
      }
  
      public static void main( String[] args ) {
          new Hello3d();
      }
  }
  </code></pre>