Adding dependency jars and making sample.java work