Developing on openhab get error Variable references non-existent resource

Here is what I did:
I get this error: Variable references non-existent resource

When should i run openHAB_Runtime and when SmartHome Runtime Sample Rules?