File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI problem: java.lang.ClassNotFoundException: Interface" Watch "RMI problem: java.lang.ClassNotFoundException: Interface" New topic

RMI problem: java.lang.ClassNotFoundException: Interface

Dupont Girard

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



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: 11778

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

Joined: Mar 30, 2011
Posts: 14
Sounds like an interface problem, have you implemented UnicastObejct and Remote respectivly?
I agree. Here's the link:
subject: RMI problem: java.lang.ClassNotFoundException: Interface
It's not a secret anymore!