Running Eclipse Luna using Oracle Java 8 on Mavericks
JRE is Java Runtime Environment which is used for running java applications. But if you want to develop Java applications and do Java programming, you need JDK i.e. Java Development Kit.

To know more see the following question

https://stackoverflow.com/questions/1906445/what-is-the-difference-between-jdk-and-jre