![]() ![]() You can see that JDK is installed on "/usr/sun/jdk/v1.6.0_16-64bit".Ģ) Add the following line of your. All you need to is find the location of JDK, which you can find either by printing PATH as follows It means Java is installed and added to your PATH, so half of the job is done already. d64 use a 64-bit data model if available d32 use a 32-bit data model if available To check that open putty and connect to your Linux server and type the following command If you decide to improve your Linux skill this year, I suggest you take a look at these best online Linux courses, which are both short and sweet and also explains all important details.ġ) The first step is to find the location where Java is installed on your Linux machine. Though I strongly encourage every Java developer to learn Linux, it's a really important skill and serves you for a long time. ![]() I'll show you steps on how to find the location of Java and how to set up the JAVA_HOME in Linux in this article, and these steps should also work with any Linux or Java version like Ubuntu, RedHat, CentOS, SUSE, ArchLinux, Debian, Fedora, etc. 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 |