Calling method that needs to be static but cant be?

So im trying to call the dispose method in this class by writing

Pixmap.dispose():

but this error comes up: Cannot make a static reference to the non-static method dispose() from the type Pixmap
So as i go to change the dispose() method to a static method i get this error: Illegal modifier for the interface method dispose; only public & abstract are permitted
Is there any work around to this?

This is the pixmap class

package com.reed.snow.framework;

import com.reed.snow.framework.Graphics.PixmapFormat;

public interface Pixmap {
    public int getWidth();

    public int getHeight();

    public PixmapFormat getFormat();

    public void dispose();
}

You need an instance of a class implementing the Pixmap interface.

Reread what Abuse said. An instance of a class that implements Pixmap, not an instance of Pixmap. Learn basic OOP before trying to deal with pixmaps; if you’re trying to instantiate a interface like that…

Ooops sorry guys i figured it out. I think i was asking the wrong thing anyway thanks for the help. please excuse my stupidity.

solution

VariableName.dispose();