<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Developers_Guide_For_Eclipse_IDE</title><link>https://sourceforge.net/p/mobile-trail-explorer/wiki/Developers_Guide_For_Eclipse_IDE/</link><description>Recent changes to Developers_Guide_For_Eclipse_IDE</description><atom:link href="https://sourceforge.net/p/mobile-trail-explorer/wiki/Developers_Guide_For_Eclipse_IDE/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 05 Oct 2015 20:38:05 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mobile-trail-explorer/wiki/Developers_Guide_For_Eclipse_IDE/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for Developers_Guide_For_Eclipse_IDE page</title><link>https://sourceforge.net/p/mobile-trail-explorer/wiki/Developers_Guide_For_Eclipse_IDE/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Originally posted by: &lt;a class="" href="http://code.google.com/u/115857292670805721891/" rel="nofollow"&gt;gdjo...@gmail.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;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&lt;a class="" href="/p/mobile-trail-explorer/w/edit/MessageConnection"&gt;?&lt;/a&gt;. I just added a link to wma20.jar and that seemed to fix it &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 05 Oct 2015 20:38:05 -0000</pubDate><guid>https://sourceforge.neta9b3c0f335568f8520a0a698ccc574fdeb7fd415</guid></item><item><title>Developers_Guide_For_Eclipse_IDE modified by Anonymous</title><link>https://sourceforge.net/p/mobile-trail-explorer/wiki/Developers_Guide_For_Eclipse_IDE/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="building-mobile-trail-explorermte-in-eclipse-using-ant"&gt;Building Mobile Trail Explorer(MTE) in Eclipse using ANT.&lt;/h1&gt;
&lt;p&gt;You must have the following Installed before you can build MTE in Eclipse: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="" href="http://www.eclipse.org/" rel="nofollow"&gt;Eclipse&lt;/a&gt; (naturally) &lt;/li&gt;
&lt;li&gt;Suns 'Java Development Kit' &lt;/li&gt;
&lt;li&gt;The SUN Wireless Toolkit(WTK) installed to "C:\WTK" (see #1 bellow) &lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://eclipseme.org/" rel="nofollow"&gt;EclipseME&lt;/a&gt; (a plug in for eclipse for developing JavaME applications - &lt;a class="" href="http://eclipseme.org/docs/installEclipseME.html" rel="nofollow"&gt;see the download page&lt;/a&gt;) &lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Some Subversion access application, either &lt;a class="" href="http://subclipse.tigris.org/" rel="nofollow"&gt;Subclipse&lt;/a&gt; or &lt;a class="" href="http://tortoisesvn.tigris.org/" rel="nofollow"&gt;TortoiseSVN&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class="" href="http://subclipse.tigris.org/" rel="nofollow"&gt;Subclipse&lt;/a&gt; (handy if using eclipse, but hard to configure if you're behind a proxy - &lt;a class="" href="http://subclipse.tigris.org/install.html" rel="nofollow"&gt;see the download page&lt;/a&gt;) &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="http://tortoisesvn.tigris.org/" rel="nofollow"&gt;TortoiseSVN&lt;/a&gt; (more complicated compared to Subclipse, but works well behind proxys) &lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="1"&gt;#1&lt;/h2&gt;
&lt;p&gt;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: '&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nt"&gt;&amp;lt;property&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"install.api.root"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"C:/WTK"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;' , 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: '&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nt"&gt;&amp;lt;target&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"Default Build"&lt;/span&gt; &lt;span class="na"&gt;depends=&lt;/span&gt;&lt;span class="s"&gt;"Default_Color_Phone"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/target&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;' to '&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nt"&gt;&amp;lt;target&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"Default Build"&lt;/span&gt; &lt;span class="na"&gt;depends=&lt;/span&gt;&lt;span class="s"&gt;"SonyEricsson_K750_Emu"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/target&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;' &lt;/p&gt;
&lt;h2 id="configure-eclipse-to-use-the-jdk-as-opposed-to-the-jre"&gt;Configure Eclipse to use the JDK (as opposed to the JRE )&lt;/h2&gt;
&lt;p&gt;In eclipse, go: Window -&amp;gt; Preferences Java -&amp;gt; Installed JREs. &lt;/p&gt;
&lt;p&gt;Here you should see one line, saying something like jre1.6.0, with a tick in the box on that line. &lt;/p&gt;
&lt;p&gt;Now click "Add..." Then click "Browse..." &lt;/p&gt;
&lt;p&gt;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. &lt;/p&gt;
&lt;p&gt;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. &lt;/p&gt;
&lt;h2 id="next"&gt;Next...&lt;/h2&gt;
&lt;p&gt;Open Eclipse and download MTE into a new Project. (If you haven't done that already!) &lt;/p&gt;
&lt;p&gt;Make sure you have an ANT window open by going: Window -&amp;gt; Show/View -&amp;gt; ANT Drag the build-eclipse.xml file across into that window &lt;/p&gt;
&lt;h2 id="building-for-developmentdebugging"&gt;Building for Development\Debugging&lt;/h2&gt;
&lt;p&gt;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. &lt;/p&gt;
&lt;h2 id="building-for-deployment-harder-to-debug-but-smaller-jar-file-and-better-performance"&gt;Building for Deployment (Harder to debug, but smaller JAR file, and better performance)&lt;/h2&gt;
&lt;p&gt;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! &lt;/p&gt;
&lt;p&gt;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. &lt;/p&gt;
&lt;h2 id="huh"&gt;Huh?&lt;/h2&gt;
&lt;p&gt;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. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 05 Oct 2015 20:38:05 -0000</pubDate><guid>https://sourceforge.net9c9608dbfec03242a5d3a576e61cfcf6a056a345</guid></item></channel></rss>