• 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
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Eclipse - reference external classes

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to create my first program using Eclipse (just downloaded 2.1). I have a .class file (given to me without any source) which I'm trying to reference. I created a .java file without a package name and will instantiate the class in the .class file. The .class file has a package name of com.xx.yy.
I've tried to bring it in using "Import" and the Java Build Path. I went thru the tutorial & help files, and tried every combination of things I could think of. I got this working using NetBeans, but wanted to see how easy this is using Eclipse. Under NetBeans I didn't need to import the .class files since the Java program I created already had the same package.
Can anyone help me get this working?
Thanks,
Steve
 
Steve Campbell
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just got it working. I still need to play around with this tool (Eclipse) to try to figure out the quirks.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic