simple package problem ,please help

package test;

public interface Ya

{

public void doit();

}

this is stored in cd\jdk1.3\test as Ya.java and compiled it in the same directory.

NExt i make

package test;

public class make implements Ya

{

public void doit()

{

System.out.println("Hi");

}

}

when I compile it in cd\jdk1.3\test

it says

cannot resolve symbol Ya.

? whats going on?

[475 byte] By [sseans] at [2007-9-26 2:13:45]
# 1
HI You have to compile make classcoming out of test directory.thats is you have to sayjavac c:\test\make.javathen it will compileThankspathreading
pathreading at 2007-6-29 9:08:46 > top of Java-index,Core,Core APIs...
# 2
sorry doesnt work
sseans at 2007-6-29 9:08:46 > top of Java-index,Core,Core APIs...
# 3

Hi! All you need is to set the environment variable classpath. If you are working in NT environment, go to my computer, right click it, choose properties. Search tabs for the "environment variables" buttons, click it.

In the variable list click new, enter variable name classpath and then give the value c:\jdk1.3. i.e, the parent directory of your package. Compile all classes.

If you are a 98/Me user, edit autoexec.bat and write,

set classpath=c:\jdk1.3

you have to execute autoexec.bat or simply restart your computer simply to activate changes.

See your os manual for setting environmental variables if you are working in another os.

muh_abubakar at 2007-6-29 9:08:46 > top of Java-index,Core,Core APIs...