Prerequisites #īefore starting with the tutorial, make sure you are logged in as root or user with sudo privileges If you are not sure which Java implementation and version to install, the general recommendation is to install OpenJDK 11 JDK, which is the current LTS version of Java. There are also two different implementations of Java, OpenJDK and Oracle Java, with almost no differences between them except that Oracle Java has a few additional commercial features. above com) with the module description.What is Java and course structure | Java for Beginners - Learn all the Basics of Java | Part- 02 Let your program consist of a single class and is a module tryout, that is, except com/example/MainClass.java you have and module-info.java (in the default package, i.e. If you want to send your program to an end user who now does not have a suitable JRE and does not want to install the JDK, you should create a runtime environment (some kind of old JRE) that will include only the necessary Java modules, including the module of your program.įor example, let's analyze a simple Hello world. You don't have to delete the old JDK, it won't hurt. It's best to just delete the old Public JRE. At the same time, you should take into account that in Windows, the installers of the old Public JRE copied java.exe to the C:\Windows\System32 directory, which is also registered in PATH. If you want to do this from the command line, you should make sure that the path to java or to java.exe from JDK11 is set, in the environment variable PATH, before the path to java or to java.exe of older JREs. If you are a developer, you can run your program using JDK 11.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |