If you are running Java programs on Ubuntu using Eclipse Maven or Netbeans etc you8217ll need to set JAVAHOME to your path. Otherwise your system will complain that 8220javahome environment variable is not set8221.

In this beginner8217s tutorial I8217ll show the steps to correctly set Java Home variable on Ubuntu. The steps should be valid for most other Linux distributions as well.

The process consists of these steps.

The simplest way to check if Java Development Kit JDK is installed on your Linux system is by running this command.

The above command checks the version of Java compiler. If it is installed it will show the Java version.

If the command shows an error like javac command not found you8217ll have to install JDK.

If Java Compiler is not installed on your system install Java Development Kit using this command.

...

Read Full Post

News Link: https://itsfoss.com/set-java-home-ubuntu/.
RSS Link: https://itsfoss.com/feed/.

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.