j2me模拟器为什么不能执行下去?
程序函数是这样的:protectedvoidstartApp()throwsMIDletStateChangeException{//TODO自动生成方法存根try{Sy...
程序函数是这样的:protected void startApp() throws MIDletStateChangeException {
// TODO 自动生成方法存根
try{
System.out.println("hello2");
Manager.playTone(60,500,100);
Thread.sleep(600);
System.out.println("hello1");
Manager.playTone(62,500,100);
Thread.sleep(600);
Manager.playTone(64,500,100);
Thread.sleep(600);
Manager.playTone(65,500,100);
Thread.sleep(600);
Manager.playTone(67,500,100);
Thread.sleep(600);
Manager.playTone(69,500,100);
Thread.sleep(600);
Manager.playTone(71,500,100);
Thread.sleep(600);
Manager.playTone(72,500,100);
Thread.sleep(600);
System.out.println("hello");
player.start();
}catch(MediaException e){
}catch(InterruptedException e){
}
}
执行想了一声并显示了hello2,过后模拟器就自动关闭了,请教,谢谢
但是手机上运行就可以执行前面八个,就是不能执行最后一个函数调用 展开
// TODO 自动生成方法存根
try{
System.out.println("hello2");
Manager.playTone(60,500,100);
Thread.sleep(600);
System.out.println("hello1");
Manager.playTone(62,500,100);
Thread.sleep(600);
Manager.playTone(64,500,100);
Thread.sleep(600);
Manager.playTone(65,500,100);
Thread.sleep(600);
Manager.playTone(67,500,100);
Thread.sleep(600);
Manager.playTone(69,500,100);
Thread.sleep(600);
Manager.playTone(71,500,100);
Thread.sleep(600);
Manager.playTone(72,500,100);
Thread.sleep(600);
System.out.println("hello");
player.start();
}catch(MediaException e){
}catch(InterruptedException e){
}
}
执行想了一声并显示了hello2,过后模拟器就自动关闭了,请教,谢谢
但是手机上运行就可以执行前面八个,就是不能执行最后一个函数调用 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询