cannot find symbol

Hi been having similar problem as some of the others

This is the objective of my lesson: Develop a class to represents a human. The head, arms and legs should be properties of the human and should be represented by separate objects. All of your objects should have at least three properties and one method.

public class Human

{

Head human_head;

public Human(String color1, String size1, String color2)

{

human_head = new Head(color1, size1, color2);

}

public static void main(String[] args)

{

Human mke = new Human("green", "big", "blonde");

System.out.println("My name is Phil I have " + mke.human_head + "eyes head hair");

}

}

C:\java_code>javac usingobjects\Human.java

usingobjects\Human.java:8: cannot find symbol

symbol : class Head

location: class usingobjects.Human

Head human_head;

^

usingobjects\Human.java:14: cannot find symbol

symbol : class Head

location: class usingobjects.Human

human_head = new Head(color1, size1, color2);

^

2 errors

C:\java_code>

[1140 byte] By [scottmonsta] at [2007-11-26 16:09:27]
# 1

Exactly what the error message says - the compiler can not figure out what Head is. You need to write a Head class. It isn't clear what you are doing with package names. The Human class code you posted does not contain a "package usingobjects;" but it appears that Human is part of that package. So Head will either need to be in the same package or if in a different package you will need to import it. You then need to either compile Head or put Head.java where javac can find and compile it.

atmguya at 2007-7-8 22:31:46 > top of Java-index,Developer Tools,Java Compiler...