Java JDK,SDK,SE? [英] Java JDK, SDK, SE?

查看:184
本文介绍了Java JDK,SDK,SE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将学习java 7并做了一些研究,但似乎没有清楚地回答这些问题,如果你能回答这些问题或者帮助我一点点,我将不胜感激:

I am going to be learning java 7 and have done some research but haven't seem to answer these questions clearly, if you could answer these question or help me out a little it will be greatly appreciated:


  • Java 7只是Java SE 7吗? Java 6是Java SE 6吗?


  • Java SE 7还是Java JDK 7吗?什么是JDK?

  • 这是否意味着java JDK与java编号相同(Java SE 7)?

  • 什么是java 1.5和1.6?以及它如何与java编号(Java SE ...)相对应?

  • Java的SDK是否与JDK相同?

  • Is Java 7 just Java SE 7? and Java 6 is Java SE 6?
  • Is Java SE 7 also Java JDK 7? and also what is the JDK?
  • Does this mean that the java JDK is the same as the java number (Java SE 7)?
  • what is java 1.5 and 1.6? and how does that correspond to the java number (Java SE...)?
  • Is Java's SDK the same as the JDK?

如果我错了,请告诉我。
谢谢,杰克

If i have this all wrong please tell me. Thanks, jack

推荐答案

是的,这可能令人困惑。

Yes, it can be confusing.

你没有要求它,但我会从这里开始。 JVM是Java虚拟机。它是一个程序,可以读取编译的Java代码(.class文件和.jar文件,它们只是包含一堆打包在一起的.class文件的.zip文件)并执行它。有许多JVM,例如你需要一个用于Windows的JVM,一个用于Linux,一个用于OSX等。但是还有许多替代JVM,用于嵌入式设备的JVM等(许多人不同意并且说JVM只有一个,并且它是一个规范。但是,通常系统管理员会说JVM来表示服务器上运行的实际二进制文件。)

You didn't ask for it, but I'll start from here. The JVM is the Java Virtual Machine. It is a program that can read compiled Java code (the .class files, and the .jar files that are simply .zip files containing a bunch of .class files packaged together) and execute it. There are many JVMs, for example you need a JVM for Windows, one for Linux, one for OSX etc. but there are also many alternative JVMs, JVMs for embedded device etc. (many will disagree and say that the JVM is only one, and it's a specification. However, commonly a sysadmin will say "the JVM" to indicate the actual binary running on the server).

你没有要求以下内容无论是。 JRE是Java运行时环境。它包括运行 Java应用程序所需的一切,即JVM本身,标准库和一堆其他文件。标准库本身非常重要,因为它包含许多在开发Java应用程序时将要使用的有用的东西。它包含java。*包中的所有内容以及com.sun,com.oracle包中的一些私有内容。

You didn't ask for the following either. The JRE is the Java Runtime Environment. It includes everything needed to run a Java application, that is the JVM itself, the standard library and a bunch of other files. The standard library is itself very important, because it contains a lot of useful things you'll use when developing Java applications. It contains all the stuff in java.* packages and some private stuff in com.sun, com.oracle packages.

不同版本的Java(1.0,1.1等)一直到1.7,也称为Java 7)通常包含对JVM和标准库的改进,因此这两者通常需要一起运行,并在JRE中打包在一起。

Different versions of Java (1.0, 1.1, etc. all the way to 1.7, also known as Java 7) usually contain improvements to both the JVM and the standard library, so the two usually need to run together, and are packaged together in the JRE.

如果您在计算机上运行任何Java程序,则安装了JRE。

If you are running any Java program on your computer, you have a JRE installed.

JDK是Java Development Kit。它包含JRE以及开发 Java应用程序的许多其他有用的东西。这显然包括了编译器(由于某些原因也包含在JRE中,但你现在可以忽略这个事实),用于创建.jar文件的JAR实用程序,用于反编译类文件的许多工具,检查.jar文件,重新打包它们等等。

The JDK is the Java Development Kit. It contains the JRE as well as a lot of other useful stuff for developing Java applications. That includes the compiler obviously (which is also contained in the JRE for some good reason, but you can ignore this fact now), the JAR utility to create .jar files, many tools for "decompiling" class files, inspect .jar files, repackage them, etc.

它通常还包含标准库的文档以及标准库的所有源代码,因为它们对于开发人员的读取和检查很有用。如果你想认真开发Java应用程序,你需要JDK。

It also usually contain documentation for the standard library and also all the sources of the standard library, because they are useful for developers to read and inspect. If you want to seriously develop Java applications, you need the JDK.

当谈到JavaSE,JavaEE,JavaME等时,那些就是所谓的版本。基本上,由于Java生态系统非常庞大,Sun决定以不同的版本提供Java:

When talking about JavaSE, JavaEE, JavaME etc. those are so called "editions". Basically, since the Java ecosystem is huge, Sun decided to offer Java in different editions:


  • JavaSE:是标准版,通常是非常适合客户端软件,普通应用程序等。

  • JavaME:是移动版,它是旧手机上的小游戏,但它基本上是小适用于容量极低的处理器的Java版本。

  • JavaEE:是企业版。它用于开发服务器端的东西,所以它包括服务器端使用的很多库。

关于编号,他们搞砸了它相当多。实际上,在Java 1.4之后,他们创建了JCP,让社区参与Java本身的开发,从Java 1.5开始,它正式命名为Java 5,尽管业界大多数人称之为1.5。此外,Java 1.2是Java 2,但我认识的每个人都没有当时在Sun工作,总称它为1.2

Regarding numbering, they messed it up quite a bit. Actually, after Java 1.4 they created the JCP, to involve the community in the development of Java itself, and starting from Java 1.5 it is officially named "Java 5", despite most in the industry calling it 1.5. Also, Java 1.2 was Java 2, but everyone I know who was not working in Sun at that time always called it 1.2.

这篇关于Java JDK,SDK,SE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆