Reputation: 1859
Edit: This Question was marked duplicate of how-do-i-fix-a-nosuchmethoderror but its not duplicate one, here i am asking about does this problem happening because of icu4j jar and WebSphere.
I am running application on WebSphere 7 and i am using STS for development at one point i am calling UCharacter.offsetByCodePoints
from icu4j 58.2 jar that i have added my application's web-inf/lib folder. when i click on method STS is able find this method but at run time i am getting below error.
java.lang.NoSuchMethodError: com/ibm/icu/lang/UCharacter.offsetByCodePoints(Ljava/lang/CharSequence;II)I
I have added this jar at every required place like in WEB-INF/lib
folder.
Is it due to WebSphere is getting confused between sun.text.normalizer.UCharcter
and com.ibm.icu.lang.UCharacter
or does webSphere has older version of icu4j or what ?
What could be possible solution for it.
Upvotes: 1
Views: 40