Hi,
I am new to GWT so please bear with me if the below looks simple.
I am using the Stockwatcher sample program to test out whether I can
call method from a native C library at the server side.
I created a simple HelloWorld.c file that prints "HelloWorld". It
exposes only one method print(). In the Stockwatcher program, I have
modified StockPriceServiceImpl's getPrices() method to call a function
that does the following:
1. Uses loadLibrary to load the HelloWorld.dll as below. This succeeds
and I don't see the exception.
static
{
try {
System.loadLibrary("HelloWorld");
}
catch(UnsatisfiedLinkError e)
{
System.out.println(e.getMessage());
}
}
2. Calls print()
When I debug the program from Eclipse using GWTShell, I see that when
print is called, it throws "UnsatisfiedLinkError" exception. I have
placed HelloWorld.dll in the top Stockwatcher dir. I see everything
working fine when I used the same HelloWorld.dll from a separate
HelloWorld.java program.
Can somebody help in answering whether I can use native methods from
server side code? If so then pls point out what it is that I am not
doing correctly in the above program.
Any prompt response will be highly appreciated.
Regards,
Satadal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---