compiling interfaces
Hi,
I have an interface Compute.java
package compute;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Compute extends Remote {
Object executeTask(Task t) throws RemoteException;
}
Also there is one more interface in the same package "Task.java".
package compute;
import java.io.Serializable;
public interface Task extends Serializable {
Object execute();
}
Now these two files are placed in compute directory whose path is
C:\sharvan\src\compute
I tried compiling Compute.java interface using the follwing command
C:\Myjava\mine\sharvan\src> javac compute/Compute.java
But ended up getting the following error
compute/Compute.java:7: cannot resolve symbol
symbol : class Task
location : interface compute.Compute
Object executeTask(Task t) throws RemoteException;
I downloaded these interface files from RMI trail in the Java tutorial.
Any idea how to rectify this error.
Thanks,
sharvan

