Integrating .class file into a project
1 posts in topic
Flat View  Flat View

Posted By:   Naomi_Mifsud
Posted On:   Wednesday, February 6, 2008 04:58 AM

I'm doing an assignment, and our lecturer sent us a class to start from but the problem is that it is .class not .java and I have a problem to integrate it in my project which I already started.

I tried to import from Library properties -- compile tab etc, and I thought it worked coz it appeared with the other .java files (which I don't know if it's a good thing or not), however when I tried to use it, I had an error cannot find symbol. symbol: constructor of the class I tried to import!

Can someone please tell me how to import a .class file step by step?

Thanks a lot in advance.

Re: Integrating .class file into a project

Posted By:   Stephen_McConnell  
Posted On:   Thursday, February 7, 2008 07:43 AM

Is the ".class" file set up in a specific package or a default package....? Usually, you just enter the location of the class in your classpath variable (not a library which usually is a .jar file). I don't know about netbeans, but in eclipse, there is an area in the preferences to add classes to the classpath.....

Stephen McConnell

About | Sitemap | Contact