I'm using jibx to convert a xml to JAVA and vice versa. Here, in an Ant script, I'm using the following code to load the JIBX_HOME
path from the environment variable:
<property environment="env"/>
<property name="jibx-home" value="${env.JIBX_HOME}"/>
I have set the JIBX_HOME
environment variable to .bashrc
as follows:
export JIBX_HOME=/rezsystem/jibx_1_2_2/jibx
But this path is not loaded to the jibx-home property.
When I simply type $ set command
in the terminal it prints. JIBX_HOME=/rezsystem/jibx_1_2_2/jibx
successfully. What have I missed here? My OS is Ubuntu 12.10 and my IDE is Eclipse kepler.
Make sure you add the line to the current bashrc like, key in on a shell,
vi ~/.bashrc
or
gedit ~/.bashrc
then enter the line at the end,
export JIBX_HOME=/rezsystem/jibx_1_2_2/jibx
don't use sudo command, save the file and restart the system.