【问题标题】:J2ME Emulator not respondingJ2ME 模拟器没有响应
【发布时间】:2012-11-01 14:31:51
【问题描述】:

我试图在 J2ME 中做一个简单的 hello world 程序,我在 ubuntu 12.04 上使用 Netbeans 7.2.1。 打包helloworld;

import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

/**
 * @author mashombo
*/

public class Midlet extends MIDlet {

private TextBox tb;
private Display display = null;

public void helloworld(){
tb = new TextBox("Hello world Midlets"," -samboga", 100, 0);
}
public void startApp() {
    if(display == null){
    display = Display.getDisplay(this);
    display.setCurrent(tb);
    }
}

public void pauseApp() {
}

public void destroyApp(boolean unconditional) {
}


}

当我尝试运行上述代码时,模拟器没有响应我尝试按下模拟器右侧的启动按钮,没有任何反应。这是我运行时的输出

Starting emulator in execution mode
Running with storage root /home/mashombo/j2mewtk/2.5.2/appdb/DefaultGrayPhone
Running with locale: en_ZA.UTF-8
/dev/dsp: No such file or directory
Running in the identified_third_party security domain

你能帮忙看看我有什么遗漏吗?我是 Netbeans 的新手

【问题讨论】:

    标签: java emulation netbeans-7 midlet


    【解决方案1】:

    据我所知 /dev/dsp 是一个与 OSS 一起工作的设备。尝试使用以下命令加载它:

    modprobe snd-pcm-oss
    

    【讨论】:

      猜你喜欢
      • 2019-03-02
      • 2016-08-16
      • 1970-01-01
      • 2011-07-15
      • 1970-01-01
      • 2021-03-17
      • 2015-01-14
      • 1970-01-01
      • 2021-05-11
      相关资源
      最近更新 更多