Skip to main content

Setting Environment Variables JAVA_HOME, MAVEN_HOME, PATH and CLASSPATH in Java for Windows

http://www.a2ztechguide.com/2011/10/setting-environment-variables-javahome.html

https://docs.oracle.com/javase/tutorial/essential/environment/paths.html

http://stackoverflow.com/questions/2619584/how-to-set-java-home-on-windows-7

Recommended: https://www.youtube.com/watch?v=2FWhn6xteU0&list=PLTgRMOcmRb3OHE_z8n9uCpROTaynNcv1u&index=3

JDK Download link: http://www.oracle.com/technetwork/java/javase/downloads/index.html


Set under System variables>> JAVA_HOME
C:\Program Files\Java\jdk1.8.0_102

Set under System variables>> JAVA_CLASSPATH
.;C:\Program Files\Java\jdk1.8.0_102

Set PATH under User Variables of UserName:
C:\Program Files\Java\jdk1.8.0_102\bin


echo %JAVA_HOME%

Output should be-
C:\Program Files\Java\jdk1.8.0_102

echo %JAVA_CLASSPATH%
Output should be-
C:\Program Files\Java\jdk1.8.0_102

echo %PATH%
Output should be-
C:\Program Files\Java\jdk1.8.0_102\bin

Setting up Maven:
https://stackoverflow.com/questions/45119595/how-to-add-maven-to-the-path-variable

Comments

Popular posts from this blog

Install and configure WSL2 (ubuntu distro), npm, git and project on Windows

  For Installation information please visit:  https://docs.microsoft.com/en-us/windows/wsl/install-win10 1.Configure WSL 2  After installation search for %UserProfile% in the local machine. check if there is any .wslconfig file. If there is no .wslconfig file create one with this content depends on the available resource. [wsl2] memory=8GB swap=0 processors=4 Install windows Terminal Application and check if everything is configured properly. 2.Configuring NodeJS on WSL npm install 3.Configuring Git and project  To install git, in a wsl terminal, we run sudo apt update && sudo apt upgrade   sudo apt install git To set up your Git config file, open a command line for the distribution you're working in and set your name with this command (replacing "Your Name" with your Git username): git config --global user.name "Your Name" Set your email with this command (replacing "youremail@ domain.com " wi...