• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

jar and RMI don�t work?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using RMI and I can start my server in my �jar file. But my client wont find my server ether with my �jar file ore when I use class files. Everything work�s fine if I use just class files.
My server says :
java �jar FlyByNightServer.jar 127.0.0.1 db.db
Server started OK!
But my client says :
java �jar FlyByNight-jar 127.0.0.1
FlyByNight : java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: suncertyfiy.bussiness.FlightManager_stub
Where should I look fore the problem? Everything works with just class files.
 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Package your stubs with in the client jar, and it will work. When you start your client as "java -jar client.jar", the classpath is ignored, and the client can't find the stubs.
Eugene.
 
Lina Mahl
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ha! It worked :-) Thank you :-)
/Lina
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic