cannot use "SavitchIn"

My version is j2sdk1.4.2_01

My Program is simple:

public class Change{

public static void main(String[] args){

int amount;

amount = SavitchIn.readLineInt();

System.out.println(amount);

}

}

after I complie it, it shows:

Change.java:6: cannot resolve symbol

symbol : variable SavitchIn

location: class Change

amount = SavitchIn.readLineInt();

^

1 error

Is this version of program not content "SavitchIn.class"?

If so, how can I fix this problem?

I have installed the program in my computer in c:\j2sdk1.4.2_01,

and have added the path into the system path as c:\j2sdk1.4.2_01;c:\j2sdk1.4.2_01\bin; c:\j2sdk1.4.2_01\jre\bin

but it still doesn't work.

Please Help!

[795 byte] By [clivengtw] at [2007-9-30 21:34:42]
# 1

> Is this version of program not content

> "SavitchIn.class"?

> If so, how can I fix this problem?

> I have installed the program in my computer in

> c:\j2sdk1.4.2_01,

> and have added the path into the system path as

> c:\j2sdk1.4.2_01;c:\j2sdk1.4.2_01\bin;

> c:\j2sdk1.4.2_01\jre\bin

> but it still doesn't work.

> Please Help!

Do you mean you installed SavitchIn.class file in the C:\j2sdk1.4.2_01 directory? If you did, then compile withjavac -classpath c:\j2sdk1.4.2_01 Change.javaI recommend creating another directory for your classes and source code. For example, c:\myjava.

atmguy at 2007-7-7 3:05:52 > top of Java-index,Administration Tools,Sun Connection...