Java developers like me always set mandatory environment variables like JAVA_HOME, PATH, and CLASSPATH on the login scripts executed by the shell when you log in to Linux like bash_profile.sh, but you can also set JAVA_HOME into /etc/profile for all users. Unfortunately, When you install Java on Linux or Windows, this environment variable is not set automatically. Like in the previous article, I explained a Maven issue ( invalid target release: 1.7, 1.8) related to the Java version, which occurred even though the correct version of Java was installed on the machine, but JAVA_HOME was pointing to an older version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |