Skip to main content

Thread: Is this the right way?


i created environment variable adding following line ~/.bashrc file
code:
export ejbca_home=/home/user/ejbca
i tried
code:
export ejbca_home="/home/user/ejbca"
when type
code:
printenv
or
code:
echo $ejbca_home
i see has been set. however, when use
code:
system.getenv("ejbca_home")
it returns null value.

replaced
code:
system.getenv("path")
and not give null value. think may not have set environment variable properly? have logged out , logged in, restarted , shutdown , turn on nothing seems work.

can please

proper method
code:
path=/path/to/new/file;$path
appended ~/.bashrc
in 1 step using shell command
code:
echo export path=\$\{path\}:\path/to/new/file >> ~/.bashrc
also make sure bashrc. it's pain when accidently wipe out file


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Is this the right way?


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account