Reputation: 25028
I have been asking a lot of questions about LTI-CIVIL and I have figured a solution. For that, I need to relative reference the native library for LTI. Is it possible to relative reference a library in Eclipse ?
If not, what is the workaround ?
Upvotes: 2
Views: 494
Reputation: 25137
Ok. This answer will work for you. I know you are not using ant, but you can still specify a CLASSPATH in the manifest of your jar. Include dot in the CLASSPATH, and put the LTI jar in the same folder. That means you can zip up your jar and the LTI jar together at the same outermost level.
If you want the directory structure of your other question, you can put ../putLTIhere
in your CLASSPATH.
This answer will give you more details:
How to build a distributable jar with Ant for a java project having external jar dependencies
Upvotes: 1
Reputation: 1218
You can right-click on the project, then click "properties" -> Java Build Path -> Add Jars
That should do the trick :)
Upvotes: 0