![]() ![]() ![]() In order to actually build applications on a different version of Java, you need to connect your Eclipse IDE with the corresponding JDK. JDK Compliance settings in the Preferences ( Java > Compiler) You can select the default Java version for your workspace in the preferences (on the Java > Compiler page), or individually in the properties for each Java Project (preferred). You can, for example, run your Eclipse IDE on Java 8, but use it to build applications based on basically any earlier version of Java. You can run an Eclipse IDE on a JRE from one version of Java and build applications that target one or more different versions of Java. If the runtime platform is just a JRE, then a lot of that valuable goodness will be missing (but compiling still works because the Java development tools include the Eclipse Compiler for Java) If that JRE is part of a JDK, then you’ll get access to all the goodies that you need to get useful content assist, documentation, debugging support, etc. By default, an Eclipse IDE will configure itself to build applications against the JRE that it was launched on. If you’re building Java applications, however, you really need to have access to a JDK. A JRE provides just the runtime platform: it doesn’t include the source code and Javadoc for any of the base Java libraries, or any of the development tools that are included in the Java Development Kit (JDK). Written almost entirely in Java, the Eclipse IDE requires a Java Runtime Environment (JRE) to run. That relationship can be a bit weird to wrap your brain around. The Eclipse IDE for Java™ Developers (and the other Java developer variants) is itself a Java application that’s used to build Java applications. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |