This functionality is only available for certain module packages.

getOutputDirectory(IProject project)

Returns a string that contains the path to the output directory in the workspace. In the event of an error, an exception is thrown.

getOutputDirectory(IProject project) throws CoreException
Argument IProject project Project object
Return value String Path to the project folder in the workspace.

The path to the project folder in the workspace. This path differs depending on whether a desktop or job server installation has been performed.