Karaf configuration

740 views Asked by At

When installing karaf in one computer and shifting it to another, lot of base directories have deafult path made during installation. how to change the variables KARAF_BASE, KARAF_ETC, KARAF_DATA in karaf?

3

There are 3 answers

0
Jorge Martinez On

Have a look at your karaf–folder/bin/setenv(.bat/.sh)

0
Kushagra Saxena On

You can change KARAF environment variables in bin/setenv Unix script .

0
Karim G On

In karaf–folder/bin/karaf.bat, you can override these variables.

Example:

-Dkaraf.etc="%KARAF_HOME%\..."

Note: you can also customize the KARAF_HOME variable at the begin of the karaf.bat script.