When you install development tools, they will first check for the JAVA_HOME variable. JAVA_HOME: stores location of the JDK’s installation directory.These tools need to use the Java compiler ( javac) and Java launcher ( java) to compile and run Java applications, but these tools don’t know where the JRE or JDK is.So, by setting up the environment variables, you tell your tools that: “Hey, you can find the compiler and launcher here and there”.The first thing you need to do after installing the JDK is creating an environment variable named JAVA_HOME and then update the PATH variable. You develop Java applications by using tools like editors, IDEs and servers. Why do you need to setup environment variables in Java programming?Well, in this article I talked about the JVM, JRE and JDK, which are the cornerstones of the Java programming language.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |