title: Eclipse - Compiling & executing program
body: <p>In the past, I have used JCreator to develop my java applications. I wanted to try Eclipse and see its IDE.</p>
  
  <p>On JCreator, I could just open a java file and run it in the command prompt. On Eclipse, I cannot find out how I can compile and run a java file written by someone else without first creating a project, creating a new java class and then copy and pasting the code from the file. </p>
  
  <p>I cannot even figure out how to import a java file into the project. </p>
  
  <p>So my questions:<br>
  1. How can I open, compile and run a java file without first creating a java project.<br>
  2. How can I import a java file into a project I already have.<br>
  3. How can I run the program in command prompt, instead of on the console that is in Eclipse, (update: to be more clear) directly from the Eclipse. </p>
  
  <p>Thank you.</p>