title: How to include .java files as embedded resources in Eclipse project
body: <p>I want to include some files as embedded resources in an Eclipse Java project, so that at runtime I can read them using</p>
  
  <pre><code>getClass().getResourceAsStream("somefile")
  </code></pre>
  
  <p>For most files this works just by adding them to a directory inside the project, but some of the files to have the extension ".java". Eclipse naturally tries to compile them as part of the project. How do I tell it not compile them, but include them as embedded resources?</p>