Posted By:
Imran_Ghani
Posted On:
Friday, February 8, 2002 09:13 PM
I have downloaded the tutorial from Sun's site but facing problem while compiling interface that extends java.rmi.Remote. the code for interface that extends Remote interface is as below: package compute; import java.rmi.Remote; import java.rmi.RemoteException; public interface Compute extends Remote { Object executeTask(Task t) throws RemoteException; } package compute; import java.io.Serializable; public interface Task extends Serializable { Object execute(); }
More>>
I have downloaded the tutorial from
Sun's site but facing problem while
compiling interface that extends
java.rmi.Remote.
the code for interface that extends
Remote interface is as below:
package compute;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Compute extends Remote
{
Object executeTask(Task t) throws RemoteException;
}
package compute;
import java.io.Serializable;
public interface Task extends Serializable {
Object execute();
}
Both of the above interfaces are in the
same package
compute
but in different files.
On Dos when i compiled the Compute interface as following it gives error:
C:>javac computeCompute.java
Error is :
computeCompute.java:7: cannot resolve symbol
symbol : class Task
location: interface compute.Compute
Object executeTask(Task t) throws RemoteException;
^
1 error
Please tell me ASAP the root cause and
solution.whether its a problem with the
package compilation?
<<Less