title: Cannot use Scala class in Java
body: <p>I believe Scala and Java can use classes from each other.</p>
  
  <p>However, I found myself in a situation that my Java class cannot use a Scala class in the same package.</p>
  
  <p>The scala class is defined as:</p>
  
  <pre><code>class CustomerService extends AbstractCustomerService {
  </code></pre>
  
  <p>The code trying to use this bit of code is:</p>
  
  <pre><code>public Deployer() {
          singletons.add(new CustomerService());
  }
  </code></pre>
  
  <p>The error I got is:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3:compile (default-compile) on project orderservice: Compilation failure
  [ERROR] \devel\raven\services\orderservice\service\src\main\scala\com\mxyy\orderservice\customer\Deployer.java:[12,31] cannot find symbol
  [ERROR] symbol  : class CustomerService
  [ERROR] location: class com.mxyy.orderservice.customer.Deployer
  </code></pre>
  
  <p>Can someone give me some hint about this?</p>
  
  <p>Many thanks</p>