[Freeswitch-users] JAVA ESL

Fernando Testa testa at voicetechnology.com.br
Mon Aug 17 13:04:07 PDT 2009


I found this same issue on my machine.
If you could compile a esl_wrap.o then you have to generate a libesl.so with
a cmd like this:
g++ -shared esl_wrap.o -o libesl.so
Then in your code, do something like this:
/* Test.java */
import org.freeswitch.esl.*;

class Test
{
  public static void main(String[] args)
  {
    System.loadLibrary("esl");
    System.out.println("hello");
  }
}



On Thu, Jul 30, 2009 at 10:31 PM, Jean-Marc Hyppolite <hyppolite72 at yahoo.com
> wrote:

> Thank you Anthony.
>
> --- On *Thu, 7/30/09, Anthony Minessale <anthony.minessale at gmail.com>*wrote:
>
>
> From: Anthony Minessale <anthony.minessale at gmail.com>
> Subject: Re: [Freeswitch-users] JAVA ESL
> To: freeswitch-users at lists.freeswitch.org
> Received: Thursday, July 30, 2009, 9:00 PM
>
>
> it might be a build issue, I was not exactly sure how to build it etc.
> so it may need some help from a java expert
>
> I wrote all of that with swig and never was able to test it.
>
>
> On Thu, Jul 30, 2009 at 7:40 PM, Jean-Marc Hyppolite <
> hyppolite72 at yahoo.com<http://ca.mc356.mail.yahoo.com/mc/compose?to=hyppolite72@yahoo.com>
> > wrote:
>
>>   Hello,
>>
>> I built libesl and JAVA mod. (make and make javamod). But when I try to
>> run a JAVA script with the following code
>>
>> ESLconnection connection = new ESLconnection("127.0.0.1", "9000", "");
>> ESLevent events = connection.getInfo();
>> System.out.println(events.toString());
>>
>> I get the following error message:
>>
>> Exception in thread "main" java.lang.UnsatisfiedLinkError:
>> /usr/lib/libesl.so: /usr/lib/libesl.so: undefined symbol:
>> __gxx_personality_v0
>>         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>>         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
>>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
>>         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
>>         at java.lang.System.loadLibrary(System.java:1030)
>>         at ivr.IVRServer.<clinit>(IVRServer.java:18)
>>
>> Any help would be appreciated.
>>
>> Thanks.
>>
>>
>> ------------------------------
>> The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo!
>> *Get it Now for Free!* <http://downloads.yahoo.com/ca/internetexplorer/>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org<http://ca.mc356.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com<http://ca.mc356.mail.yahoo.com/mc/compose?to=MSN%3Aanthony_minessale@hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<http://ca.mc356.mail.yahoo.com/mc/compose?to=PAYPAL%3Aanthony.minessale@gmail.com>
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org<http://ca.mc356.mail.yahoo.com/mc/compose?to=sip%3A888@conference.freeswitch.org>
> iax:guest at conference.freeswitch.org/888
> googletalk:conf+888 at conference.freeswitch.org<http://ca.mc356.mail.yahoo.com/mc/compose?to=googletalk%3Aconf%2B888@conference.freeswitch.org>
> pstn:213-799-1400
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<http://ca.mc356.mail.yahoo.com/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>    ------------------------------
>
> *Yahoo! Canada Toolbar :* Search from anywhere on the web and bookmark
> your favourite sites. Download it now! <http://ca.toolbar.yahoo.com/>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Fernando Gregianin Testa
Voice Technology Ltda
+55 11 35882166
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090817/3f576e71/attachment-0002.html 


More information about the FreeSWITCH-users mailing list