@echo off @rem *************************************************************** @rem ** Author: Robert Lie (mobilefish.com) @rem ** @rem ** motorola.bat @rem ** @rem ** Runs the Motorola J2ME desktop emulator @rem ** @rem ** There are no command line arguments. @rem ** You MUST edit this batch file before running @rem ** @rem ** Assumptions: @rem ** The Motorola J2ME SDK Version 1.0 is already installed @rem ** @rem *************************************************************** @rem *************************************************************** @rem ** MYMIDLET is the name of the midlet-jar file @rem ** Do not enter .jar @rem ** e.g.: MYMIDLET=Bounce @rem *************************************************************** set MYMIDLET=MobileStatus @rem *************************************************************** @rem ** MYCLASS is the name of main CLASS file @rem ** e.g.: MYCLASS=com.mot.j2me.midlets.bounce.Bounce @rem *************************************************************** set MYCLASS=MobileStatus @rem *************************************************************** @rem ** MYEMUL is the name of the emulator which you are using @rem ** You can choose between the following emulators: @rem ** MYEMUL=Emulator7.5 @rem ** MYEMUL=Emulator7.2 @rem ** @rem ** Emulator7.2 contains profiles (=skins) for: @rem ** Generic Phone @rem ** Motorola Accompli @rem ** Motorola iDEN i1000 @rem ** Motorola iDEN Platform @rem ** Motorola StarTAC @rem ** @rem ** Emulator7.5 contains profiles(=skins) for: @rem ** DefaultDevice @rem ** Generic Device @rem ** Minimal @rem ** MP3Player @rem ** Motorola i85s @rem ** Motorola T280i @rem ** Motorola T720 @rem ** Motorola v60i @rem ** Motorola v66i @rem ** @rem *************************************************************** @set MYEMUL=Emulator7.5 @rem *************************************************************** @rem ** MYSKIN is the name of the skin which you are using @rem ** You can choose between the following skins: @rem ** @rem ** Emulator7.2 contains skins for: @rem ** MYSKIN=defaultdevice.props [DefaultDevice=Motorola Accompli] @rem ** MYSKIN=Accompli.props [Motorola Accompli] @rem ** MYSKIN=Motorolai1000.props [Motorola iDEN i1000] @rem ** MYSKIN=MotorolaiDENplatform.props [Motorola iDEN Platform] @rem ** MYSKIN=StarTac.props [Motorola StarTAC] @rem ** @rem ** Emulator7.5 contains skins for: @rem ** MYSKIN=defaultdevice.props [DefaultDevice=Motorola v60i] @rem ** MYSKIN=GenericDevice.props [Generic Device] @rem ** MYSKIN=Minimal.props [Minimal] @rem ** MYSKIN=Mp3Player.props [MP3Player] @rem ** MYSKIN=i85s.props [Motorola i85s] @rem ** MYSKIN=T280i.props [Motorola T280i] @rem ** MYSKIN=T720.props [Motorola T720] @rem ** MYSKIN=v60i.props [Motorola v60i] @rem ** MYSKIN=v66i.props [Motorola v66i] @rem ** @rem *************************************************************** @set MYSKIN=defaultdevice.props @rem *************************************************************** @rem ** MOTOROLA_HOME is the location where the Motorola J2ME SDK v1.0 @rem ** is installed. @rem ** e.g.: MOTOROLA_HOME=D:\tools\Motorola\J2ME SDK v1.0 @rem *************************************************************** @set MOTOROLA_HOME=D:\tools\Motorola\J2ME SDK v1.0 @rem *************************************************************** @rem ** MIDLET_HOME is the location where the midlet-jar file is @rem ** located @rem ** e.g.: MIDLET_HOME=D:\website\midlets @rem ** e.g.: MIDLET_HOME=D:\tools\Motorola\J2ME SDK v1.0\demo\com\mot\j2me\midlets\bounce @rem *************************************************************** @set MIDLET_HOME=D:\website\midlets @rem *************************************************************** @rem ** CLPATH1 and CLPATH2 is the location of several jar files @rem ** YOU SHOULD NOT HAVE TO CHANGE THESE SETTINGS @rem *************************************************************** @set CLPATH1=./Emulator.jar;./ConfigTool.jar @set CLPATH2=%MIDLET_HOME%/%MYMIDLET%.jar;../lib @rem *************************************************************** @rem ** Invoke the emulator @rem ** YOU SHOULD NOT HAVE TO CHANGE THESE SETTINGS @rem ** WARNING: @rem ** Do not put a space between -classpath and %CLPATH2% in: @rem ** -classpath%CLPATH2% @rem *************************************************************** cd %MOTOROLA_HOME%\%MYEMUL%\bin java -Djava.library.path=../lib -classpath %CLPATH1% com.mot.tools.j2me.emulator.Emulator -classpath%CLPATH2% -deviceFile resources/%MYSKIN% javax.microedition.midlet.AppManager %MYCLASS% -JSA 1 1 @rem *************************************************************** @rem ** Goto a directory when you stop using the emulator @rem *************************************************************** cd d:\java_settings