This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Help  RSS feed

 
kevin jia
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • 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).]
 
Milind Kulkarni
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • 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).]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!