J2ME & Eclipse  
Author Message
dbfrager





PostPosted: 2007-8-22 7:25:00 Top

java-programmer, J2ME & Eclipse I have just started playing with J2ME, using a software example I downloaded
from http://www.garret.ru/~knizhnik/En_Home.htm#Shopper. I can successfully
build the application and run it both in the emulator outside of eclipse
using emulatorw, and also on my Nokia phone.

I just can not run it within Eclipse, with or without debug. I get the
following error message:

Exception in thread "main" java.lang.UnsatisfiedLinkError:
com.sun.midp.main.Configuration.getProperty0(Ljava/lang/String;)Ljava/lang/String;
at com.sun.midp.main.Configuration.getProperty0(Native Method)
at com.sun.midp.main.Configuration.getProperty(Configuration.java:32)
at com.sun.midp.lcdui.Resource.<clinit>(Resource.java:30)
at com.sun.midp.main.Main.initSystemLabels(Main.java:686)
at com.sun.midp.main.Main.main(Main.java:103)


 
Joshua Cranmer





PostPosted: 2007-8-22 8:36:00 Top

java-programmer >> J2ME & Eclipse dbfrager wrote:
> I have just started playing with J2ME, using a software example I
> downloaded from http://www.garret.ru/~knizhnik/En_Home.htm#Shopper. I
> can successfully build the application and run it both in the emulator
> outside of eclipse using emulatorw, and also on my Nokia phone.
>
> I just can not run it within Eclipse, with or without debug. I get the
> following error message:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
From the JavaDocs page for UnsatisfiedLinkError:
"Thrown if the Java Virtual Machine cannot find an appropriate
native-language definition of a method declared native."

Therefore, there is some native library that is being used that is not
present on your computer. My guess is that your computer does not have a
Java ME installation on it. Since my extent of Java ME knowledge is
"It's a special environment for specialized environments", I cannot help
you further with this information. But better keywords to look for would
be using Java ME on a PC or something similar.

--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth