How do I set or change the PATH system variable?

System Variable
Spread the love

Hello Guys, In this article I will explain how to set system variable to different platform
such as Oracle Linux, Red Hat Linux, SUSE Linux, Solaris SPARC, Windows 7, Windows 8, Windows Vista, Windows XP, Mac OS X.

Information about Variable :
The PATH is the system variable that your working framework uses to find required executables from the command or Terminal window.
The PATH system variable can be set utilizing System Utility in control board on Windows, or in your shell’s startup record on Linux and Solaris.
Rolling out improvements to the system PATH variable is normally a bit much for PCs running Windows or Mac OS X.

Windows
Windows 10 and Windows 8
In Search, search for This PC or right click on the My computer Icon and then click on properties option.
Click the Advanced system settings link.
Choose Advance Tab from the Window and then Click on Enviroment Variables. If the PATH environment variable does not exist, click New.
In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
Reopen Command prompt window, and run your java code.

Windows 7
From the desktop, right click the Computer icon.
Choose Properties from the context menu.
Click the Advanced system settings link.
Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
Reopen Command prompt window, and run your java code.

Windows Vista
From the desktop, right click the My Computer icon.
Choose Properties option from the list.
Click the Advanced tab (Advanced system settings link in Vista).
Click Environment Variables. In the section System Variables, find the PATH environment variable and choose it. Click Edit. If the PATH environment variable does not exist, click New.
In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
Reopen Command prompt window, and run your java code.

Windows XP
Open Start, choose Control Panel. double click System, and select the Advanced tab.
Click Environment Variables. In the section System Variables, find the PATH environment variable and choose it. Click Edit. If the PATH environment variable does not exist, click New.
In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
Reopen Command prompt window, and run your java code.

Leave a Reply

Your email address will not be published. Required fields are marked *

WP Twitter Auto Publish Powered By : XYZScripts.com