Eclipse is not importing jar dependencies between two projects in the same workspace

Posted by jax on Stack Overflow See other posts from Stack Overflow or by jax
Published on 2010-06-07T16:11:28Z Indexed on 2010/06/07 17:32 UTC
Read the original article Hit count: 198

Filed under:
|
|

Here is the situation.

I have a java project "LicenseGenerator" in eclipse that depends on commons-codec. I have therefore added the commons-codec jar file to the build path. I have Junit tests and everything is working fine.

I have made a different project in the same workspace - which happens to be an Android project - that needs to use my LicenseGenerator classes. I added LicenseGenerator to the "projects" tab in the build path - the classes were recognized and I was able to use them.

Everything compiled and ran. However, when the part of the LicenseGenerator that used the commons-codec was called from my Android project I got the following error.

Could not find method org.apache.commons.codec.binary.Base64.encodeBase64URLSafeString, referenced from method

This basically tells me that the commons-codec was not packaged which the Android project, so I added the commons-codec to the android project as well but the same error appears.

how do I fix this? alt text

alt text

alt text

alt text

alt text

© Stack Overflow or respective owner

Eclipse is not importing jar dependencies between two projects in the same workspace

Posted by jax on Stack Overflow See other posts from Stack Overflow or by jax
Published on 2010-06-07T10:31:03Z Indexed on 2010/06/07 15:12 UTC
Read the original article Hit count: 198

Filed under:
|
|

Here is the situation.

I have a java project "LicenseGenerator" in eclipse that depends on commons-codec. I have therefore added the commons-codec jar file to the build path. I have Junit tests and everything is working fine.

I have made a different project in the same workspace - which happens to be an Android project - that needs to use my LicenseGenerator classes. I added LicenseGenerator to the "projects" tab in the build path - the classes were recognized and I was able to use them.

Everything compiled and ran. However, when the part of the LicenseGenerator that used the commons-codec was called from my Android project I got the following error.

Could not find method org.apache.commons.codec.binary.Base64.encodeBase64URLSafeString, referenced from method

This basically tells me that the commons-codec was not packaged which the Android project, so I added the commons-codec to the android project as well but the same error appears.

how do I fix this?

© Stack Overflow or respective owner

Related posts about java

Related posts about android