ALBERLAU blog

Blog about my personal experience in software development.

Wednesday, February 20, 2008

 

International characters in JEXL

When using i18n chars in string's i'm getting

org.apache.commons.jexl.parser.TokenMgrError: Lexical error at line 1,
column 17. Encountered: "\u0139" (313), after : "\'U"

Because of this problem in JEXL i compiled jar which solves that problem.


Below is Randy H. solution pasted from forum how to fix things.

1. Download and unzip jexl 1.1 source from:
http://www.axint.net/apache/jakarta/commons/jexl/source/commons-jexl-1.1-src.zip

2. Download and unzip JavaCC 4.0 from:
https://javacc.dev.java.net/files/documents/17/26777/javacc-4.0.zip

3. Run javacc-4.0\bin\javacc -UNICODE_INPUT
commons-jexl-1.1-src\src\java\org\apache\commons\jexl\parser\Parser.jj

4. Copy *.java to
commons-jexl-1.1-src\src\java\org\apache\commons\jexl\parser

5. Run ant -f commons-jexl-1.1-src\build.xml

6. Use the new jar commons-jexl-1.1-src\target\commons-jexl-1.1.jar

Labels: ,


Comments:
This is great info to know.
 
Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Archives

January 2008   February 2008   March 2009  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]