Last updatedMay 28, 2020

Rate this page:

How do I get the location of the confluence home directory?

How do I get the location of the confluence.home directory?

First you need the BootstrapManager then simply call the following method:

Confluence 5.5 and earlier:

String confluenceHome = bootstrapManager.getConfluenceHome();

Confluence 5.6 and later:

String confluenceHome = bootstrapManager.getSharedHome();


String confluenceHome = bootstrapManager.getLocalHome();

The BootstrapManager also has a getConfiguredLocalHome method. This method is used during system startup to determine the location of confluence.home from first principles. There is no reason for you to call this method.


How do I get a reference to a component

Rate this page: