title: Creation of JavaRDD object has failed
body: <p>I have this piece of code:</p>
  
  <pre><code>ArrayList&lt;Row&gt; list = new ArrayList&lt;Row&gt;();
  Row testRow = RowFactory.create(true, 101.0, "string");
  list.add(testRow);
  JavaRDD&lt;Row&gt; testRDD = JavaSparkContext.parallelize(list);
  </code></pre>
  
  <p>In the last line of this code I have the following error message:</p>
  
  <blockquote>
    <p>Cannot make a static reference to the non-static method
    prallelize(List &lt; Row > ) from the type JavaSparkContext.</p>
  </blockquote>
  
  <p>How can I improve my code and create a JavaRDD object from my list (which actually should have multiple Rows objects). Currently I don't understand which part of my code is static.</p>