Hi, I am new to River and want to setup my first project. I downloaded River source code and built it with command: ant build.all After that I went to $RIVER_HOME/examples/hello and started services and after that started example by invoking ant command. That's ok.
But now I want to run some example with Eclipse. I started with: http://river.apache.org/user-guide-basic-river-services.html . I started HTTP Server, started Service Registrar. After that I made this class: import java.rmi.MarshalledObject; import java.rmi.RMISecurityManager; import java.rmi.RemoteException; import net.jini.core.discovery.LookupLocator; import net.jini.core.event.EventRegistration; import net.jini.core.event.RemoteEventListener; import net.jini.core.lookup.ServiceID; import net.jini.core.lookup.ServiceItem; import net.jini.core.lookup.ServiceMatches; import net.jini.core.lookup.ServiceRegistrar; import net.jini.core.lookup.ServiceRegistration; import net.jini.core.lookup.ServiceTemplate; public class Test implements ServiceRegistrar{ public static void main(String[] args){ System.setSecurityManager(new RMISecurityManager()); getUnicast(); } public static void getUnicast(){ LookupLocator ll = new LookupLocator("jini://localhost:4160"); StreamServiceRegistrar sr = ll.getStreamRegistrar(); System.out.println("Service Registrar: "+sr.getServiceID()); } //Here goes other methods } My problem is that Eclipse tells me StreamServiceRegistrar cannot be Resolved to a type. Obviously I didn't imported library which contains this class. But I imported all jars from folder $RIVER_HOME/examples/hello/lib. Also nothing changes if I import all jars from $RIVER_HOME/lib, $RIVER_HOME/lib-dl and $RIVER_HOME/lib-ext. Cant someone help me?
