importing packages

hey, i'm new to java, so bear with me here. ^.^

I'm working on a summer assignment for school. I've downloaded all of the files i've been told to download, and saved them in the files directed by my teacher. I've copied over the codes she's given us into JCreator, and I've posted the code below:

import chn.util.*;

public class StudentInfoDriver

{

public static void main(String args[])

{

StudentInfo student1 = new StudentInfo();

System.out.println("Student #1 Info \n");

System.out.println("Student's Name:" + student1.getName());

System.out.println("Student's Age:" + student1.getAge());

System.out.println("Student's Hobby:" + student1.getHobby() + "\n" );

StudentInfo student2 = new StudentInfo();

ConsoleIO keyboard = new ConsoleIO();

System.out.println("Enter your name");

String name = keyboard.readLine();

student2.setName(name);

System.out.println("Enter your age");

int age = keyboard.readInt();

student2.setAge(age);

System.out.println("Enter your hobby");

String hobby = keyboard.readLine();

student2.setHobby(hobby);

System.out.println("");

System.out.println("Student #2 Info \n");

System.out.println("Student's Name:" + student2.getName());

System.out.println("Student's Age:" + student2.getAge());

System.out.println("Student's Hobby:" + student2.getHobby() + "\n" );

System.out.println("Student #1 Info \n");

System.out.println("Student's Name:" + student1.getName());

System.out.println("Student's Age:" + student1.getAge());

System.out.println("Student's Hobby:" + student1.getHobby() + "\n");

}

}

and when i tried to compile it, i got this error:

C:\Program Files\Java\JCreator LE\MyProjects\StudentInfo\StudentInfoDriver.java:1: package chn.util does not exist

import chn.util.*;

^

i've checked, and i do have "chn.util" on my computer... how do i fix this?

thanks!

[2047 byte] By [jjflyhighxa] at [2007-10-1 20:18:35]
# 1
Add the library with this package to your classes path.This will be an option somewhere in JCreator.
Peter-Lawreya at 2007-7-13 2:19:43 > top of Java-index,Developer Tools,Java Compiler...
# 2
errr... how do i do that?*complete and embarrassingly stupid novice*
jjflyhighxa at 2007-7-13 2:19:43 > top of Java-index,Developer Tools,Java Compiler...
# 3

I believe you click Project in the toolbar at the top, then click Project properties.

Under JDK Profiles you will see whatever version you are using. Select that and then click Edit. Then click add, then click archive (assuming what you need to add is a jar, if not select path) then navigate to find whatever it is that needs to be added to your path.

I hope this helps.

puffycowa at 2007-7-13 2:19:43 > top of Java-index,Developer Tools,Java Compiler...