当我想开始学习Java时,我应该安装哪一个?我将从一些基础知识开始,因此我将编写一些简单的程序,用于创建文件、目录、编辑XML文件等,目前还不太复杂。

我想我应该在Windows 7桌面上安装Java SE(标准版)。我已经有了Komodo IDE,我将使用它来编写Java代码。


当前回答

Developers use different editions of the Java platform to create Java programs that run on desktop computers, web browsers, web servers, mobile information devices (such as feature phones), and embedded devices (such as television set-top boxes). Java Platform, Standard Edition (Java SE): The Java platform for developing applications, which are stand-alone programs that run on desktops. Java SE is also used to develop applets, which are programs that run in web browsers. Java Platform, Enterprise Edition (Java EE): The Java platform for developing enterprise-oriented applications and servlets, which are server programs that conform to Java EE’s Servlet API. Java EE is built on top of Java SE. Java Platform, Micro Edition (Java ME): The Java platform for developing MIDlets, which are programs that run on mobile information devices, and Xlets, which are programs that run on embedded devices.

其他回答

当我遇到这个问题时,我发现Oracle教程上提供的信息非常完整,值得分享:

Java编程语言平台

There are four platforms of the Java programming language: Java Platform, Standard Edition (Java SE) Java Platform, Enterprise Edition (Java EE) Java Platform, Micro Edition (Java ME) JavaFX All Java platforms consist of a Java Virtual Machine (VM) and an application programming interface (API). The Java Virtual Machine is a program, for a particular hardware and software platform, that runs Java technology applications. An API is a collection of software components that you can use to create other software components or applications. Each Java platform provides a virtual machine and an API, and this allows applications written for that platform to run on any compatible system with all the advantages of the Java programming language: platform-independence, power, stability, ease-of-development, and security.

Java SE

When most people think of the Java programming language, they think of the Java SE API. Java SE's API provides the core functionality of the Java programming language. It defines everything from the basic types and objects of the Java programming language to high-level classes that are used for networking, security, database access, graphical user interface (GUI) development, and XML parsing. In addition to the core API, the Java SE platform consists of a virtual machine, development tools, deployment technologies, and other class libraries and toolkits commonly used in Java technology applications.

Java EE

Java EE平台构建在Java SE平台之上。Java EE平台提供了一个API和运行时环境,用于开发和开发 运行大规模、多层次、可扩展、可靠、安全 网络应用程序。

Java ME

Java ME平台提供了一个API和一个占用空间小的虚拟 机器上用于运行Java编程语言的小型应用程序 设备,比如手机。该API是Java SE API的一个子集, 以及特殊的类库,适用于小型设备应用程序 发展。Java ME应用程序通常是Java EE的客户端 平台服务。

JavaFX

JavaFX是一个用于创建富互联网应用程序的平台 轻量级用户界面API。JavaFX应用程序使用 硬件加速图形和媒体引擎的优势 更高性能的客户端和现代的外观和感觉 用于连接到网络数据源的高级api。JavaFX 应用程序可能是Java EE平台服务的客户端。

如果我是你,我会安装Java SE SDK。安装完成后,请确保设置了JAVA_HOME环境变量,并将%JAVA_HOME%\bin dir添加到路径中。

以下是api方面的一些差异

Java SE包含以下api和更多api

小应用程序 awt rmi jdbc 摇摆不定的 集合 xml绑定 JavaFX(合并到Java SE 8) Java 8集合流API Java 9活性流API Java 9 HTTP/2 API

Java EE包括以下api和更多api

servlet websocket java的脸 依赖注入 ejb 持久性 事务 jms 批处理api

Java ME包括以下api和更多api

无线消息传递 Java ME Web服务 安全和信任服务API 位置 移动XML API

希望这能有所帮助。

Java SE是构建Java EE的基础。

Java ME是用于移动设备的SE的一个子集。

因此,您应该为项目安装Java SE。

是的,您应该从Java SE开始。Java EE适用于web应用程序,Java ME适用于移动应用程序——两者都是基于SE构建的。