• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need Help

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I encounter a strange thing, could anyone give me an explanation:
I defined two interfaces as follow:
package compute;
import java.io.Serializable;
public interface Task extends Serializable {
Object execute();
}
package compute;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Compute extends Remote {
Object executeTask(Task t) throws RemoteException;
}
I have put these two interfaces into the directory compute, and I compiled interface Task, it's ok. After that I try to compile interface Compute, there is an error message "Cannot resolve symbol, class Task". But why? I don't understand.
Thanks for your help
kevin

[This message has been edited by kevin jia (edited August 21, 2000).]
 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kevin,
I tried to replicate your problem on my machine but I did not experience the same problem. Here is what I did:
My working directory structure is c:\Examples\pack (I saved two inetrface files in c:\Examples\pack). CLASSPATH points to c:\Examples.

Task.java
package pack;
import java.io.Serializable;
public interface Task extends Serializable {
Object execute();
}
Compute.java
package pack;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Compute extends Remote {
Object executeTask(Task t) throws RemoteException;
}
You may be experiencing this problem because of some conflict with the existing files on your system. Check out if you have any old files with the same names.
Hope this helps !!
Regards,
Milind

[This message has been edited by Milind Kulkarni (edited August 23, 2000).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic