hbyint / lanterna

Automatically exported from code.google.com/p/lanterna
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Key.java:103: unclosed character literal #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by silicont...@gmail.com on 25 Nov 2012 at 2:05

GoogleCodeExporter commented 9 years ago
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...

Original comment by mab...@gmail.com on 25 Nov 2012 at 11:50

GoogleCodeExporter commented 9 years ago
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?

Original comment by silicont...@gmail.com on 25 Nov 2012 at 11:56

GoogleCodeExporter commented 9 years ago
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.

Original comment by mab...@gmail.com on 25 Nov 2012 at 12:50