Hi there - VB.Net / C# coder with a sense of adventure here...

I've read a few books on Java, and decided to give it a whirl - having used
Eclipse 3.3 to knock together a quick "Hello World" app with Swing, I've
decided to try and create a small application for mobile phones. EclipseME
looks like just the sort of think I'm after then, no?

So, I've got Eclipse Version: 3.3.1.1 Build id: M20071023-1652 installed to
d:\eclipse\eclipse.
I've got the Sun jre1.6.0_03, hidden away in c:\program files...
I've got the Sun Wireless Toolkit 2.5.2 installed at c:\WTK2.5.2.
EclipseME 1.7.7 running as a plugin on Eclipse...

I've "written" the following as a first midlet...

import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;


public class CMainForm extends MIDlet {

    protected void destroyApp(boolean arg0) throws
MIDletStateChangeException {

    }

    protected void pauseApp() {
        // TODO Auto-generated method stub

    }

    protected void startApp() throws MIDletStateChangeException {
        // TODO Auto-generated method stub

    }

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub

    }

}


In other words - just the stubs... When I try and debug this in eclipse, I'm
getting a UnsatisfiedLinkError. Here's the stack trace:

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)
ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code =
-2
JDWP exit error AGENT_ERROR_NO_JNI_ENV(183):
[../../../src/share/back/util.c:820]

I've tried looking on Google, and it seems this is a common problem, and one
that ought to be obvious for people who know what they are doing with
Eclipse. Any cnance of a hint for us beginners?

Cheers,

Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Eclipseme-users mailing list
Eclipseme-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to