Strange reference to UCharacter in RunnableQVTParser [message #910817] |
Mon, 10 September 2012 12:40 |
Eclipse User |
|
|
|
Hello,
I'm somewhat confused by the following method:
org.eclipse.m2m.internal.qvt.oml.ast.parser.QvtOperationalParser.RunnableQVTParser.computeInputString(int,
int)
I accidentally reached this method due to a stupid syntax error and when
the line
if (!UCharacter.isWhitespace(chars[i-1])) {
was to be executed, "UCharacter" could not be found and I received a
NoClassDefFoundError exception. I don't know this class and I'm already
pretty confused by the fact that within this calling module it is
imported as "com.ibm.icu.lang.UCharacter", but when I select "Open
Declaration" I'm shown "sun.text.normalizer.UCharacter". So I suspect
some classpath trickery here. What do I need to do/declare to have this
properly working?
TIA
Marius
|
|
|
Re: Strange reference to UCharacter in RunnableQVTParser [message #910823 is a reply to message #910817] |
Mon, 10 September 2012 12:57 |
Eclipse User |
|
|
|
On 10.09.2012 14:40, Marius Gröger wrote:
> Hello,
>
> I'm somewhat confused by the following method:
>
> org.eclipse.m2m.internal.qvt.oml.ast.parser.QvtOperationalParser.RunnableQVTParser.computeInputString(int,
> int)
>
> I accidentally reached this method due to a stupid syntax error and when
> the line
>
> if (!UCharacter.isWhitespace(chars[i-1])) {
>
> was to be executed, "UCharacter" could not be found and I received a
> NoClassDefFoundError exception. I don't know this class and I'm already
> pretty confused by the fact that within this calling module it is
> imported as "com.ibm.icu.lang.UCharacter", but when I select "Open
> Declaration" I'm shown "sun.text.normalizer.UCharacter". So I suspect
> some classpath trickery here. What do I need to do/declare to have this
> properly working?
I think I found it. The method in question depends on
com.ibm.icu_XXX.jar. My classpath didn't include this jar, so eclipse
apparently tried to resolve on its own as best as possible and used the
version in rt.jar. When actually executing the code, the class loaded
just could not find UCharacter.
Marius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03370 seconds