Exception in thread "main" java.lang.UnsatisfiedLinkError: getProperty0

J

JPractitioner

J2ME Programming Issue on VM: 1.5.0_06

Hi guys, I have tried to run the following codes (compiled with no
problem) from an IDE (JCreator LE) and i got the following exceptions.

However i managed to run it on the sun java windows tool kit's
KToolbar..


SOURCE CODE
------------
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class TinyMIDlet extends MIDlet implements CommandListener{

String s = "Hello \"cruel\" world!";
private Command quit;
private Display ourDisplay;
private Form ourForm;
private TextField ourField;

public TinyMIDlet(){
ourDisplay = Display.getDisplay(this);
quit = new Command("quit", Command.SCREEN, 2);
}


public void startApp(){
ourForm = new Form ("our first!");
ourField= new TextField ("J2ME App", s, 256, 0);

ourForm.append(ourField);
ourForm.addCommand(quit);
ourForm.setCommandListener(this);
ourDisplay.setCurrent(ourForm);
}

public void pauseApp(){
}

public void destroyApp(boolean unconditional){
}

public void commandAction(Command c, Displayable s){
if (c == quit){
destroyApp(false);
notifyDestroyed();
}
}

public static void main(String[] a){
TinyMIDlet hfj2me = new TinyMIDlet();
}

}


EXCEPTION GENERATED
-------
Exception in thread "main" java.lang.UnsatisfiedLinkError: getProperty0
at com.sun.midp.main.Configuration.getProperty0(Native Method)
at
com.sun.midp.main.Configuration.getProperty(Configuration.java:33)
at
com.sun.midp.midlet.Scheduler.getScheduler(Scheduler.java:144)
at com.sun.midp.midlet.MIDletState.<init>(MIDletState.java:301)
at
javax.microedition.midlet.MIDletProxy.<init>(MIDletProxy.java:33)
at javax.microedition.midlet.MIDlet.<init>(MIDlet.java:70)
at TinyMIDlet.<init>(TinyMIDlet.java:12)
at TinyMIDlet.main(TinyMIDlet.java:42)


Do i have to install any dll files before i can run this from my IDE?
Please advice.

Thanks (a lot) in advance.
 
J

JPractitioner

Hey Roedy, thanks dude.
really appreciate your reply.
seems like i have todeal with native libraries.
No wonder, it never showed error during compilation

Thanks again.
 
R

Roedy Green

Exception in thread "main" java.lang.UnsatisfiedLinkError: getProperty0
at com.sun.midp.main.Configuration.getProperty0(Native Method)
at

this is a bit peculiar. It looks as if the JVM is having trouble
finding its OWN native code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top