Hello, I already included class2 in many systems, being able to use e107 constants, classes and utilities from within those separated systems. It works from inside plugins dir, main dir, and in general every subfolder inside the main installation one.
The problem comes when I try to include e107 from outside the e107 installation folder, lets say:
/public_html/API -> Im trying to load class2 here
/public_html/e107-> Here are all e107 files
It looks the issue is related to the paths being loaded.