There is already a method on ILiferayRUntime for getting the lib directory. ILiferayRuntime.getAppServerLibGlobalDir()