Fetching details from the dictionary...

resin (from trees)
(tobacco) tar; nicotine
sleep (in one's eyes); eye discharge
松の木からやにが出て手がべたべたする。
Resin is coming out of the pine tree and my hands are sticky.
やにが服について取れなくなってしまった。
The resin got on my clothes and I can't get it off.
木材のやにを除去してから塗装する必要がある。
You need to remove the resin from the wood before painting.