Export to GitHub

lanterna - issue #51

Key.java:103: unclosed character literal


Posted on Nov 25, 2012 by Quick Monkey

Unable to build lanterna-2.1.1-sources

javac -classpath . -Xlint:deprecation -Xlint:unchecked -target 1.5 Display.java ./com/googlecode/lanterna/input/Key.java:103: unclosed character literal CursorLocation('£'); ^ ./com/googlecode/lanterna/input/Key.java:103: ',', '}', or ';' expected CursorLocation('£'); ^ ./com/googlecode/lanterna/input/Key.java:103: unclosed character literal CursorLocation('£'); ^ make: * [Display.class] Error 4

Have replaced £ with \u00A3 is this correct?

Mark

Comment #1

Posted on Nov 25, 2012 by Grumpy Ox

Hmm, I wonder if it's due to the file encoding. They should all be UTF-8, though... Have you tried adding "-encoding utf8" to your javac?

By the way, if you're compiling the whole library, it's kind of setup for use with Maven, which should take care of all this for you...

Comment #2

Posted on Nov 25, 2012 by Quick Monkey

the "-encoding utf8" addressed the issue.

Thank you.

I'm building it for a machine that has only Java 1.5 installed. Do you recommend a compiled download?

Comment #3

Posted on Nov 25, 2012 by Grumpy Ox

Hmm, that probably won't work, target version it set to 1.6 in the pom.xml build file. Not sure why, can't think of a java 6-only feature that it depends on.

Status: WontFix

Labels:
Type-Defect Priority-Medium