Error thrown

Non-static method WPFramework::init() cannot be called statically