Import class that is not inside a project in eclipse

1

I would like to know if there is a way to import and instantiate an object from a class that is, for example, inside a folder in my files and not in a project within eclipse.

    
asked by anonymous 10.03.2016 / 00:39

2 answers

2

Yes, of course, yes.

There are at least 3 options:

The simplest is:

Select the project > Properties > Java Build Path > Aba Libraries > Click Add External Class Folder > Select folder.

    
10.03.2016 / 01:22
1

In order to instantiate an object of this class, it needs:

  • Being a class of your project or
  • Being in the list of dependencies for your project
  • 10.03.2016 / 00:42