Convert emoji to html hex with java library & Lucee
<p>I'm trying to convert a emoji into html hexadecimal using this java library: <a href="https://github.com/vdurmont/emoji-java" rel="nofollow noreferrer">https://github.com/vdurmont/emoji-java</a><br>
<em>(taken from here: <a href="http://mvnrepository.com/artifact/com.vdurmont/emoji-java/3.1.0" rel="nofollow noreferrer">http://mvnrepository.com/artifact/com.vdurmont/emoji-java/3.1.0</a> )</em></p>

<pre><code>emojiUtils = createObject( "java", "com.vdurmont.emoji.Emoji", "/componenti/jar/emoji-java-3.1.0.jar" );

var myTitle = privateFunctionGetTitle(); // for example

var cleanTitle = emojiUtils.getHtmlHexidecimal(myTitle);
</code></pre>

<p><strong>but I get this error:</strong> <code>No matching Method for getHtmlHexidecimal(string) found for com.vdurmont.emoji.Emoji</code></p>

<p>I try <em>(for debug)</em> <code>writeDump(emojiUtils);</code>
<a href="https://i.stack.imgur.com/kBIKv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kBIKv.png" alt="emojiUtils debug"></a></p>

<p>What am I doing wrong?</p>

<hr>

<p><strong>UPDATE</strong></p>

<p>I also tried this:</p>

<pre><code>EmojiParser = createObject( "java", "com.vdurmont.emoji.EmojiParser", "/componenti/jar/emoji-java-3.1.0.jar" ); 

writeDump(EmojiParser.parseToHtmlDecimal(titoloPagina)); 
</code></pre>

<p>but I get: </p>

<blockquote>
<pre><code>lucee.runtime.exp.NativeException: Could not initialize class 
    com.vdurmont.emoji.EmojiManager
...
Caused by: java.lang.NoClassDefFoundError: 
    Could not initialize class com.vdurmont.emoji.EmojiManager 
... 80 more
</code></pre>
</blockquote>

<p><strong>StackTrace</strong>: <a href="https://gist.githubusercontent.com/ivanionut/8f4e6e356c0b2c8474d21c52d796df3a/raw/5b23ba3ff5f7c930381a8109ea43e29042cc7813/StackTrace" rel="nofollow noreferrer">https://gist.githubusercontent.com/ivanionut/8f4e6e356c0b2c8474d21c52d796df3a/raw/5b23ba3ff5f7c930381a8109ea43e29042cc7813/StackTrace</a></p>