Hey, I'm new to java.

I've been doing it for a few weeks, once a week on MACS that are all set up to use packages.

So now I've come to do work on my PC with windows.

I've worked out how to run things like hello world, my problem is getting the elements package to work.

I've got a feeling it's something to do with pathclass?

I've been searching for about two hours trying to work out how to get this to work now, no luck.

I don't understand where to put the elements files that I downloaded or how to set classpath if that's what I'm meant to be doing.

Cheers in advance.

trying to get this to work:

Java Code:
import java.awt.Color;
import element.*;

public class demo
{
    static DrawingWindow d;
    static void explain(java.awt.Color cl)
    {
        System.out.println("R="+(cl.getRed()/255d));
        System.out.println("G="+cl.getGreen()/255d);
        System.out.println("B="+cl.getBlue()/255d);
        System.out.println();
    }

    public static void main(String args[])
    {
        // draw mystic symbol
        d = new DrawingWindow();
        d.hold();
        // draw half-gray, half-black circle
        d.setForeground(Color.black);
        d.fill(new Arc(50,50,100,100,90,180));
        d.setForeground(Color.gray);
        d.fill(new Arc(50,50,100,100,-90,180));
        // add upper and lower discs
        d.setForeground(Color.black);
        d.fill(new Oval(75,50,50,50));
        d.setForeground(Color.gray);
        d.fill(new Oval(75,100,50,50));
        /* This part, below, commented out.
        // draw mystic symbol
        d = new DrawingWindow();
        d.hold();
        d.setForeground(Color.black);
        d.setBackground(Color.gray);
        // draw half-black (fill), half-gray (clear) circle
        d.fill(new Arc(50,50,100,100,90,180));
        d.clear(new Arc(50,50,100,100,-90,180));
        // add upper and lower discs
        d.fill(new Oval(75,50,50,50));
        d.clear(new Oval(75,100,50,50));
        */
        d.release();
    }
}

This is the error I get in command prompt

Java Code:
C:\Java>javac demo.java
demo.java:2: package element does not exist
import element.*;
^
demo.java:6: cannot find symbol
symbol  : class DrawingWindow
location: class demo
    static DrawingWindow d;
           ^
demo.java:18: cannot find symbol
symbol  : class DrawingWindow
location: class demo
        d = new DrawingWindow();
                ^
demo.java:22: cannot find symbol
symbol  : class Arc
location: class demo
        d.fill(new Arc(50,50,100,100,90,180));
                   ^
demo.java:24: cannot find symbol
symbol  : class Arc
location: class demo
        d.fill(new Arc(50,50,100,100,-90,180));
                   ^
demo.java:27: cannot find symbol
symbol  : class Oval
location: class demo
        d.fill(new Oval(75,50,50,50));
                   ^
demo.java:29: cannot find symbol
symbol  : class Oval
location: class demo
        d.fill(new Oval(75,100,50,50));
                   ^
7 errors