• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse and RMI - newbie

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I've got Eclipse 3.0 something and I'm trying to set up a sample session bean. While trying to construct my home object interface, I discovered that I can't see

import java.rmi.*;

I did the following:
Project -> Properties -> add Libraries
and added my 1.4.2_06

Still no joy.

Is there somewhere I can download the rmi jar by itself?

Is there some other way of waking Eclipse up?

Am I pointing to the right thing?

Ack!

Thanks all,
pres
 
Saloon Keeper
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
RMI is in the standard Sun distro, not in a separate jar, and you don't need to explicitly add the core stuff to an Eclipse project (though if you delete the core lib, you'll feel the pain fast).

Your major problem is that it's not "java.rmi", it's "javax.rmi".
 
Pres Brawner
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Tim!

How could I have been so stupid?

I trusted Ed Roman's Enterprise Java Beans, page 111. I guess books don't always contain the right answers!

I modified my code to reflect your recommendation. Eclipse still can't resolve the location, but at least I'm a step closer.

Thanks again!
Pres
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic