What is the difference between JDK and JRE?

前端 未结 20 1533
孤独总比滥情好
孤独总比滥情好 2020-11-22 03:31

What is the difference between JDK and JRE?

What are their roles and when should I use one or the other?

20条回答
  •  有刺的猬
    2020-11-22 04:19

    Here's a simple response directly from Oracle http://docs.oracle.com/javase/7/docs/technotes/guides/

    Java SE Runtime Environment (JRE)

    The JRE provides the libraries, Java virtual machine, and other components necessary for you to run applets and applications written in the Java programming language. This runtime environment can be redistributed with applications to make them free-standing.

    Java SE Development Kit (JDK)

    The JDK includes the JRE plus command-line development tools such as compilers and debuggers that are necessary or useful for developing applets and applications.

提交回复
热议问题