public static void main(String[] args) {Random.nextInt();}I get this crazy error
Exception in thread "main" java.lang.UnsatisfiedLinkError: nextIntWhy is this happening? The static methods on Random are JSNI methods, which require a running GWT environment to link to Javascript methods.
at com.google.gwt.user.client.Random.nextInt(Native Method)
The same error happened in a test case inheriting from junit.framework.TestCase. When I switched to GWTTestCase or made the nextInt() call in my application, it worked perfectly
This post helped me figure out the problem: java.lang.UnsatisfiedLinkError when using GWT client API
0 comments:
Post a Comment