You must have the following Installed before you can build MTE in Eclipse:
Some Subversion access application, either Subclipse or TortoiseSVN
Subclipse (handy if using eclipse, but hard to configure if you're behind a proxy - see the download page)
If you have the SonyEricsson WTK installed, or the SUN one installed to some other folder, you will have to edit the build-eclipse.xml file. Edit the line: '
<property name="install.api.root" value="C:/WTK">
</property>
' , and replace the 'value' with the destination folder of your WTK installation, this is one folder above the \bin and \lib folders, for SonyEricsson, this is "C:/SonyEricsson/JavaME_SDK_CLDC/PC_Emulation/WTK2" (I think...). Also if you're using the SonyEricsson WTK instead of the SUN one, change the line: '
<target name="Default Build" depends="Default_Color_Phone">
</target>
' to '
<target name="Default Build" depends="SonyEricsson_K750_Emu">
</target>
'
In eclipse, go: Window -> Preferences Java -> Installed JREs.
Here you should see one line, saying something like jre1.6.0, with a tick in the box on that line.
Now click "Add..." Then click "Browse..."
And find where you installed the JDK (The default location (for 1.6) is "C:\Program Files\Java\jdk1.6.0") In "JRE name" put in something descriptive, like "jdk1.6.0" (which might actually be the default anyway), now click OK.
You should now have a second line, with the JDK you've just found. Make sure you have the tick beside the JDK (as opposed to the JRE). DONE.
Open Eclipse and download MTE into a new Project. (If you haven't done that already!)
Make sure you have an ANT window open by going: Window -> Show/View -> ANT Drag the build-eclipse.xml file across into that window
Simply double click on "Mobile Trail" in the ANT window, and it will compile and run MTE in an emulator for you. The compiled JAD and JAR files will be put in the \bin directory also, to be transfered to your phone/PDA etc. at your leisure.
Expand the "Mobile Trail" item in the ANT window, and run (Double click on) any of the DXX-xxxxxxxxxxxxxxxxx itmes, e.g. D03-SonyEricsson_K750_Emu currently there is no difference between the JAR files created by any of these DXX scripts (so feel free to choose any). This should also open up an emulator for you, and run the compiled JAR, but don't worry if it doesn't, you probably ran one you don't have the emulator for!
The JAR file created by this script will also be put in \bin folder, it should be smaller, and (although you may not notice it much in MTE) a bit faster running on your phone.
Anything here not make sense? Not able to follow the instructions? e-mail barryred (at) gmail (dot) com for help using the "Eclipse" build tool, preferably with an explanation of what you didn't understand/what went wrong. And I'll try and make this page clearer.
View and moderate all "wiki Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Wiki"
Originally posted by: gdjo...@gmail.com
Hi, I had to modify the build script slightly to get the app to compile as I was getting errors about missing javax.wireless.messaging.MessageConnection?. I just added a link to wma20.jar and that seemed to fix it