title: Kotlin cannot access kotlin.jvm.functions.Function1 when calling kotlin function with java lambda
body: <p>I am trying to call the following Kotlin function from Java </p>
  
  <pre><code>override fun First(list: LinqList&lt;ElementType&gt;, condition: (ElementType) -&gt; Boolean) : ElementType
  </code></pre>
  
  <p>like this</p>
  
  <pre><code>int first = list.First(list,(x) -&gt; x == 5);
  </code></pre>
  
  <p>but i get the following error </p>
  
  <pre><code>Error java: cannot access kotlin.jvm.functions.Function1
    class file for kotlin.jvm.functions.Function1 not found
  </code></pre>
  
  <p>I have tried googling it but i can not find the answer anywhere </p>
  
  <p>Thanks in advance</p>