File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse - reference external classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse - reference external classes" Watch "Eclipse - reference external classes" New topic

Eclipse - reference external classes

Steve Campbell
Ranch Hand

Joined: Dec 18, 2000
Posts: 41
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?
Steve Campbell
Ranch Hand

Joined: Dec 18, 2000
Posts: 41
I just got it working. I still need to play around with this tool (Eclipse) to try to figure out the quirks.
I agree. Here's the link:
subject: Eclipse - reference external classes
Similar Threads
UnmarshalException while executing the Server Application
NetBeans Problem (Reading Properties files)
Package Import Problem
How to run RMI Application in NetBeans 4.0
Reading Properties files in NetBeans