当前位置: 技术问答>java相关
求救手机模拟器的配置
来源: 互联网 发布时间:2015-08-07
本文导语: 给我一个类我如何配置才可以运行 下面为一个例子 @echo off @rem *************************************************************** @rem ** Copyright 2000 Motorola, Inc. All rights reserved. @rem ** @rem ** runMyDevice.bat @rem ** @rem ** Runs the J2...
给我一个类我如何配置才可以运行
下面为一个例子
@echo off
@rem ***************************************************************
@rem ** Copyright 2000 Motorola, Inc. All rights reserved.
@rem **
@rem ** runMyDevice.bat
@rem **
@rem ** Runs the J2ME desktop emulator
@rem **
@rem ** Command line arguments:
@rem ** 1. class name to run
@rem **
@rem ** Assumptions:
@rem ** - This batch file is being run from the
@rem ** install directory
@rem **
@rem ***************************************************************
@if NOT "%1"=="" set MYCLASS=%1
@if "%1"=="" set MYCLASS=com.mot.j2me.midlets.httpTest.HttpTest
@rem **
@rem ** Make sure the classpath is not set
@rem **
set CLASSPATH=
@rem **
@rem ** Set the path to the resource directory
@rem **
set J2ME_RESOURCE_DIR=..libresources
@rem **
@rem ** Now invoke the emulator
@rem
cd ..bin
java -Djava.library.path=../lib -classpath ./Emulator.jar;./ConfigTool.jar com.mot.tools.j2me.emulator.Emulator -classpath../demo/midlets;../lib -deviceFile resources/device.props javax.microedition.midlet.AppManager %MYCLASS% -JSA 1 1
cd ..scripts
下面为一个例子
@echo off
@rem ***************************************************************
@rem ** Copyright 2000 Motorola, Inc. All rights reserved.
@rem **
@rem ** runMyDevice.bat
@rem **
@rem ** Runs the J2ME desktop emulator
@rem **
@rem ** Command line arguments:
@rem ** 1. class name to run
@rem **
@rem ** Assumptions:
@rem ** - This batch file is being run from the
@rem ** install directory
@rem **
@rem ***************************************************************
@if NOT "%1"=="" set MYCLASS=%1
@if "%1"=="" set MYCLASS=com.mot.j2me.midlets.httpTest.HttpTest
@rem **
@rem ** Make sure the classpath is not set
@rem **
set CLASSPATH=
@rem **
@rem ** Set the path to the resource directory
@rem **
set J2ME_RESOURCE_DIR=..libresources
@rem **
@rem ** Now invoke the emulator
@rem
cd ..bin
java -Djava.library.path=../lib -classpath ./Emulator.jar;./ConfigTool.jar com.mot.tools.j2me.emulator.Emulator -classpath../demo/midlets;../lib -deviceFile resources/device.props javax.microedition.midlet.AppManager %MYCLASS% -JSA 1 1
cd ..scripts
|
如果没有猜错的话你应该用的是MOTO的SDK了,这个开发包我用过。
举个例子:
有一个类名叫:HelloWorld.class
把它拷贝到开发包的Bin目录下面,然后把上边BAT文件的
%MYCLASS% 换成HelloWorld,也就是类名!然后保存,运行这个BAT,应该可以看
到效果了
举个例子:
有一个类名叫:HelloWorld.class
把它拷贝到开发包的Bin目录下面,然后把上边BAT文件的
%MYCLASS% 换成HelloWorld,也就是类名!然后保存,运行这个BAT,应该可以看
到效果了