Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI problem: java.lang.ClassNotFoundException: Interface

 
Dupont Girard
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 11851
185
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does your interface look like?
 
David Lidz
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like an interface problem, have you implemented UnicastObejct and Remote respectivly?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic