aspose file tools*
The moose likes Distributed Java and the fly likes RMI problem: java.lang.ClassNotFoundException: Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI problem: java.lang.ClassNotFoundException: Interface" Watch "RMI problem: java.lang.ClassNotFoundException: Interface" New topic
Author

RMI problem: java.lang.ClassNotFoundException: Interface

Dupont Girard
Greenhorn

Joined: Mar 21, 2011
Posts: 24
Hi, i am encountering some difficulties to set a RMI communication, this is my code:

Server:


Client:



I run rmic thanks to my build.xml "Ant"


it gives Stub and Skeleton, but when i execute this i get this error on my client:



I note that dao.DAOInt is located on my server !


Can someone help me Please

Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11277
    
  59

What does your interface look like?


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
David Lidz
Greenhorn

Joined: Mar 30, 2011
Posts: 14
Sounds like an interface problem, have you implemented UnicastObejct and Remote respectivly?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI problem: java.lang.ClassNotFoundException: Interface
 
Similar Threads
NX: no permision or no stub use rmi? SOS SOS
Java RMI Client AccessControlException
RMI Exception
RMI - Transport return code invalid
java.rmi.server.ExportException: Port already in use: 10344;