Other IDEs, such as NetBeans and Eclipse, will have similar functionality. I’m using my IDE, IntelliJ IDEA, to compile the code and to show me the warnings, but what you see in the messages box in Figure 1 is the same as what you’d see using javac from the command line. Example compiler warning about a potential problem First, of course, you can look at any compiler warnings, because some of those will tell you about potential problems (see Figure 1).įigure 1. There are several tools available in Java 8 that will give you appropriate hints.Ĭompiler warnings. You can determine the amount of effort that might be required to migrate to Java 9 without even downloading or using it. You should also look at this detailed migration guide to get a feel for what steps might be needed. I’ll be using this approach throughout this article. So, instead of updating $JAVA_HOME to point to the new installation, you might want to create a new environment variable, $JAVA9_HOME, instead. Until the impact of Java 9 on your system is understood, you probably don’t want it to be the default Java version. At the time of this writing, it is still an Early Access release and can be found here (in this article, I’m using build 9-ea+166). Getting Startedįirst, download and install the latest version of JDK 9. I principally examine what you need to do to get the code compiling and running. This article shows the steps you take to run Java 8 code and use some of the new features of Java 9 without migrating to modules.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |