I have a .class file w/ out the source, and im tiring to import that into my project.
So I go to import->File System and check the .class file. It shows up in my project but when I try to instantiate it I get a "can not be instantiated to a type" error.
any thoughts?
this is happening to a lot of people in my course.
thanks!
My project file was made on existing folder that had files in it. When i go to do what you said, and add it, it says i have a "Duplicate folder" and it won't let me add it. Am i doing something wrong?
i tried that what you sad, but my eclipse can't import that class.
So: I have eclipse 3.1, and i would like to import a class (without source). I develop at the moment a J2ME project with eclipse.
The class what i want to import is in a package, so i must to import like this: import net.jscience.math.kvm.MathFP;
Can you tell me how in the hell can i this class to import?
(I tried about 6 hours long, and i got some result, but not the really perfect.)
When i make this subdirectory structure (what is in the import line) into my project, then in eclipse work the auto completing, 'till the class name. :-/. But the class is there. Egal i add an external class folder, i got always the same result.
Please help me, because my brain at the moment wants to explode.
If you want to import a ".class", file or folder into your project.
Then go do one of the 2 techniques.
Select the root folder of the project by left clicking on it.
1) From the menu [File->import->General->File system]
2) With the right click [import->import->General->File system]
All you have to do is import the folder with the files. Or simply import the entire file
system with the documentation. If you want to place the class in a specific folder just drag the class into an already made package or folder.