setting environment variable JAVA_HOME

This work for ubutnu 8.04

You need to put variable definition in the ~/.bashrc file.

 

and for ubuntu 11.04

  •        put the environment variables into the global “/etc/environment” file:JAVA_HOME=/usr/
  • ii.   source /etc/environment
  • iii.   echo $JAVA_HOME

 

From bash man page:

When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if these files exist.

http://stackoverflow.com/questions/2655641/set-environment-variable-in-ubuntu

Advertisements

About rahul23134654

Hi, I am Rahul Meha , B.E. in (I.T.)
This entry was posted in Ubuntu/Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s