Adding a library [message #1803989] |
Thu, 14 March 2019 23:09  |
Eclipse User |
|
|
|
I have a class full of static methods that I want to be able to use in another project without having to re-create the class in that project in order to be able to access those methods. So, how can I import or add it to the library of project that I want it in?
|
|
|
Re: Adding a library [message #1803995 is a reply to message #1803989] |
Fri, 15 March 2019 05:35  |
Eclipse User |
|
|
|
In general you can modify/control the classpath of a Java project (I'm assuming Java is involved) via the context menu of the project which has a Properties menu item (which is probably the last one). Find the "Java Build Path" property. Here there are tabs to control
1) Which folders are "source" folders (containing *.java source files); generally these are folders in the project itself and will be compiled into the "bin" folder by default (which is hidden by default so you won't see the compiled *.class files themselves. 2) Which Projects the project depends on; generally other Java projects that in turn contain sources, the compiled *.class results of which will be on the classpath. 3) Which Libraries are on the classpath; generally jars or folders containing *.class files that should be on the classpath.
|
|
|
Powered by
FUDForum. Page generated in 0.08618 seconds