有没有办法将 eclipse 项目编译或移植到 MIDlet 中?

Is there a way to compile or port eclipse projects into a MIDlet?

我正在为我的诺基亚制作一个小型测试射击游戏,我已经为它制作了内容。有没有办法将 Eclipse 项目编译或移植到 Midlet 中,如果有,我该怎么做?

这仅适用于我家里的诺基亚 s40 phone,我尝试下载 S40 SDK,但我得到了 Mail.ru 广告软件,我不得不使用系统还原来摆脱

//this is just a section of the game's code. there's a lot more.
//variables
    double counter = 0;
    double thing = 0;
    double thing2 = 0;
    double epic = 1;
    double epic2 = 1;
    double phase = 0;
    double div = 60/1000000000;
//the attack
    private void attack1()
    {
        //bullet spread
        float n = 4f;
        if(counter % 1200 == 0 && counter > 10000)
        {
            //circles
            for(float i = 0; i<360; i+= 360/5)
            {
                for(float j = -n; j < n+1; j++)
                 c.addBullet(new Bullet(WIDTH/2, 60, (1200/1.3)*counter+i+5*j, 0.03+0.003*((double)n-Math.abs(j)), 13, 13, 13, 13, 0, 0, this));
            }
        }

如果您不使用诺基亚的任何特定功能,您可以使用 Java ME SDK 进行开发。

我个人的版本是2.5.2。您可以在 https://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javame-419430.html#sun_java_wireless_toolkit-2.5.2_01b-oth-JPR

下载