Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse - reference external classes

 
Steve Campbell
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic