Saturday 7 October 2017

SOA 12c : Setting up Environment variables on Unix/Windows

Generally before we begin our local installation or execute commands on Windows or Unix/Linux systems we should setup the environment variables so that we do not face any issues.

In this post we will learn how to setup the environment variables.



1.       Windows (one-time activity):
a.       Right click on MyComputer/This PC > Properties
b.       On left pane click on ‘Advanced system settings’
c.       On System Properties pop up click on ‘Advanced’ tab
d.       Click on button ‘Environment Variables’
e.       Under System variables box, click on New
f.        Insert Variable name and Variable values as below





 

g.       Add above variables to ‘Path’ variable by selecting on Path and clicking on Edit
h.       Add  %JAVA_HOME%\bin
i.     Apply and Save.
j.        Open command-prompt, type echo %JAVA_HOME% to validate.

 


1.       Unix/Linux (on every login):
a.       Login to box
b.       Identify dir path for variable
c.       Run command to set environment variable for JAVA_HOME like below

                            export JAVA_HOME=/java/jdk/jdk1.8.0_131
 
d.       Run command echo %JAVA_HOME% to validate

Note: Paths may differ based on how installation has been done.

If you want to set path permanently on Linux box, edit you ~/.profile or ~/.bash_profile and add the export commands.

You can also check the post on How to create a shell script which is easier to execute every time.


Helpful? Please Comment.


Happy Learning!!





No comments:

Post a Comment

OSB 12c : Dynamic Routing to Business/Proxy Service

Dynamic routing is a kind of  Content-based Routing pattern, which is used when the BusinessService/ProxyService path is required to be de...