title: ERROR when trying to run program using google map api
body: <p>I am trying to view a map using google maps api and everything is working except this error which I don't understand how I should solve because I am using netbeans version 8</p>
  
  <pre><code>Platform.runLater(() -&gt;
   {mapComponent = new GoogleMapView();
  mapComponent.addMapInializedListener(this);
  BorderPane root = new BorderPane(mapComponent);
  Scene scene = new Scene(root);
  panel.setScene(scene);
  });
  </code></pre>
  
  <p>The error I got is this one: lambda expression not expected here</p>
  
  <p>lambda expressions are not supported in -source 1.6</p>
  
  <h2>  (use -source 8 or higher to enable lambda expressions)</h2>