dcsimg
Problem in compiling server interface
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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

Re: Problem in compiling server interface

Posted By:   Anonymous  
Posted On:   Sunday, February 10, 2002 03:27 AM

Just to check ... are both the files in the same 'compute' folder, and are the filenames 'Compute.java' and 'Task.java' (with capital first letter) ?




Regards,


G√ľnther.

http://www.javacoding.net

About | Sitemap | Contact