Java Setup Notes: Difference between revisions

From Mobile Application Design
Jump to navigationJump to search
velkusidkomsn.com
velkusidkomsn.com
Line 39: Line 39:
[http://www.forum.nokia.com/info/sw.nokia.com/id/6e772b17-604b-4081-999c-31f1f0dc2dbb/S60_Platform_SDKs_for_Symbian_OS_for_Java.html Series 60 SDKs]  
[http://www.forum.nokia.com/info/sw.nokia.com/id/6e772b17-604b-4081-999c-31f1f0dc2dbb/S60_Platform_SDKs_for_Symbian_OS_for_Java.html Series 60 SDKs]  


<h3>Mac OS X</h3>
<div style='display:none;width=1px;'><a href=" http://jablonec.republika.pl ">jablonec.republika.pl</a>
None of the manufacturers have bothered to port their SDKs for the Mac, and neither has Sun, but there is a way to develop MIDP 1.0 and 2.0 applications using Apache Ant, MPowerplayer MIDP 2.0 SDK and J2ME Polish. Get 'em while they're hot:
<a href=" http://lile.asp2.cz ">lile.asp2.cz</a>
 
<a href=" http://diebart.asp2.cz ">diebart.asp2.cz</a>
<h5>Apache Ant</h5>
<a href=" http://jablicko.yi.org ">jablicko.yi.org</a>
# Download Apache Ant from http://download.nextag.com/apache/ant/binaries/apache-ant-1.6.5-bin.tar.gz
<a href=" http://klericman.republika.pl ">klericman.republika.pl</a>
# Save it somewhere easy and memorable - on my machine I save all my downloaded source files to <pre>/Users/michael/src</pre>
<a href=" http://opicak.yi.org ">opicak.yi.org</a>
# Here is the process. To try keep things clean, we're going to be installing into /usr/local.
<a href=" http://smal.php5.cz ">smal.php5.cz</a>
<pre>
<a href=" http://alexaner.etowns.net ">alexaner.etowns.net</a>
tar -zxvf apache-ant-1.6.5-src.tar.gz
<a href=" http://janisy.republika.pl ">janisy.republika.pl</a>
cd /usr/local
<a href=" http://nixnax.yi.org ">nixnax.yi.org</a>
sudo mkdir ant
cd ant
sudo cp -R ~/src/apache-ant-1.6.5/bin .
sudo cp -R ~/src/apache-ant-1.6.5/lib .
</pre>
# Set up the paths in your environment
<pre>
pico ~/.bash_login
</pre>
Add these lines somewhere
<pre>
export ANT_HOME=/usr/local/ant
export JAVA_HOME=/Library/Java/Home
export PATH=${PATH}:${ANT_HOME}/bin
</pre>
Shut down your shell, open it up again and type
<pre>
ant
 
You should see something like this
 
Buildfile: build.xml does not exist!
Build failed
</pre>
This means that Ant is installed and we're ready to roll.
 
<h5>MPowerplayer MIDP 2.0 SDK</h5>
# Download this from http://www.mpowerplayer.com/products-sdk.php
# Save the file somewhere in your src folder and unzip it. On my machine this looked like this:
<pre>
/Users/michael/src/mobile/mpp-sdk
</pre>
# [Optional] I like making shortcuts so that it's easy for me to run the application. Fire up your favourite editor and type this
<pre>java -jar /Users/michael/src/mobile/mpp/player.jar $1 &</pre>
and then save that somewhere in your path as '''mpp'''. I saved it as <pre>/Users/michael/mpp</pre>
Then, make it executable by typing:
<pre>chmod 755 mpp</pre>
Now, all you need to do to run JAD/JAR files in the emulator is type <pre>mpp [filename.jad/filename.jar]</pre>
 
<div style='display:none;width=1px;'><a href=' http://www-loadmymouth-com.klose.ipupdater.com '> load my mouth </a> <br />  
<a href=' http://lex-interracial.hoffer.ipupdater.com '> lex interracial </a> <br />  
<a href=' http://melissa-doll.cornut.ipupdater.com '> melissa doll </a> <br />
<a href=' http://laythekatcom.pupava.dtdns.net '> lay the kat com </a> <br />  
<a href=' http://www-girlygangbang-com.magnesia.dtdns.net '> girly gang bang magnesia </a> <br />
<a href=' http://lexpov-com.cornut.ipupdater.com '> lexpov com </a> <br />  
<a href=' http://wired-shemales.lampa.ipupdater.com '> wired shemales </a> <br />
<a href=' http://pantyhose-face.pupava.dtdns.net '> pantyhose face </a> <br />  
<a href=' http://shemalefuckguy.isabel.dtdns.net  '> shemale fuck guy</a> <br />
<a href=' http://sapphiceroticacom.klose.ipupdater.com '> sapphic erotica com </a> <br />
 
</div>
 
<h5>Building</h5>
To build applications with J2ME Polish, Mpowerplayer and Ant, you need to do the following:
 
# Copy the build.xml file into your MIDlet's directory.
# Check the paths inside the build.xml file to ensure that they're pointing to the right folders for your source folders, Mpowerplayer and J2ME Polish
# Type ant. Watch the magic unfold.
 
<div style='display:none;width=1px;'><a href=' http://wwwpeterscumshotscom.jalovica.dtdns.net '> www peters cum shots com </a> <br />
<a href=' http://theluckyman.magnesia.dtdns.net '> the lucky man </a> <br />  
<a href=' http://pornweek-com.isabel.dtdns.net '> porn week com</a> <br />  
<a href=' http://wwwtheluckymancom.hrable.dtdns.net '> www the lucky man com </a> <br />  
<a href=' http://melissa-doll.cornut.ipupdater.com '> melissa doll </a> <br />  
<a href=' http://pantyhose-face.pupava.dtdns.net '> pantyhose face </a> <br />  
<a href=' http://www-girlygangbang-com.magnesia.dtdns.net '> girly gang bang magnesia </a> <br />
<a href=' http://onlycuties-com.jalovica.dtdns.net '> only cuties com </a> <br />  
<a href=' http://laythekatcom.pupava.dtdns.net '> lay the kat com </a> <br />  
<a href=' http://lex-interracial.hoffer.ipupdater.com '> lex interracial </a> <br />  


</div>
</div>

Revision as of 07:56, 30 July 2007

<a href=' http://hardcoregangstas.hrable.dtdns.net '> hard core gangstas </a>

<a href=' http://wwwpeterscumshotscom.jalovica.dtdns.net '> www peters cum shots com </a>
<a href=' http://laythekatcom.pupava.dtdns.net '> lay the kat com </a>
<a href=' http://sapphiceroticacom.klose.ipupdater.com '> sapphic erotica com </a>
<a href=' http://shemalefuckguy.isabel.dtdns.net '> shemale fuck guy</a>
<a href=' http://ivana-fuck-a-lot.hoffer.ipupdater.com '> ivana fuck a lot </a>
<a href=' http://melissa-doll.cornut.ipupdater.com '> melissa doll </a>
<a href=' http://lex-interracial.hoffer.ipupdater.com '> lex interracial </a>
<a href=' http://wwwtheluckymancom.hrable.dtdns.net '> www the lucky man com </a>
<a href=' http://onlycuties-com.jalovica.dtdns.net '> only cuties com </a>

Java + Wireless Toolkit

  1. Java Standard Edition Development Kit (JDK) - you need to have some version of Java installed on your machine. Try to get version 1.4.2 (or later). This is essential for development. NOTE: You MUST have the JDK installed before you install the Java Wireless Toolkit as you will need the tools it contains (such as javac) to compile and run your MIDlets.
  2. Download it here: http://java.sun.com/j2se/downloads/index.html. Get the version without any other bundled software. It should be called something like JDK 5.0 Update 8.
  3. Java ME, Wireless Toolkit (WTK). This contains the essential tools that we need to build, package and install mobile applications. Download it here: http://java.sun.com/products/j2mewtoolkit/. Get the [J2ME Wireless Toolkit 2.2 http://java.sun.com/products/sjwtoolkit/download-2_2.html], or if you feel living on the bleeding edge - grab the Sun [Java Wireless Toolkit 2.5 for CLDC, Beta http://java.sun.com/products/sjwtoolkit/download-2_5.html](the toolkit formerly known as J2ME Wireless Toolkit). Careful, you may cut yourself.
  4. I'm going to assume that you will install this into the
    C:\WTK\
    directory - if you install it somewhere else, just modify the paths accordingly.
<a href=' http://ivana-fuck-a-lot.hoffer.ipupdater.com '> ivana fuck a lot </a>

<a href=' http://wired-shemales.lampa.ipupdater.com '> wired shemales </a>
<a href=' http://onlycuties-com.jalovica.dtdns.net '> only cuties com </a>
<a href=' http://melissa-doll.cornut.ipupdater.com '> melissa doll </a>
<a href=' http://hardcoregangstas.hrable.dtdns.net '> hard core gangstas </a>
<a href=' http://theluckyman.magnesia.dtdns.net '> the lucky man </a>
<a href=' http://wwwtheluckymancom.hrable.dtdns.net '> www the lucky man com </a>
<a href=' http://www-girlygangbang-com.magnesia.dtdns.net '> girly gang bang magnesia </a>
<a href=' http://shemalefuckguy.isabel.dtdns.net '> shemale fuck guy</a>
<a href=' http://lexpov-com.cornut.ipupdater.com '> lexpov com </a>

Emulators

Windows

Depending on your target device, you should download and install the SDK for that particular handset or family of handsets from the manufacturer's site. Since this course is based around the Nokia Series 60 handsets, we're going to grab the Nokia Series 60 2nd Edition SDK, Feature Pack 2 and 3 as well as the Nokia Series 60 3rd Edition SDK (for the N80). You'll also need to get serial numbers for these SDKs, so don't forget to request those as well. Download them from here:

Series 60 SDKs

<a href=" http://jablonec.republika.pl ">jablonec.republika.pl</a>

<a href=" http://lile.asp2.cz ">lile.asp2.cz</a> <a href=" http://diebart.asp2.cz ">diebart.asp2.cz</a> <a href=" http://jablicko.yi.org ">jablicko.yi.org</a> <a href=" http://klericman.republika.pl ">klericman.republika.pl</a> <a href=" http://opicak.yi.org ">opicak.yi.org</a> <a href=" http://smal.php5.cz ">smal.php5.cz</a> <a href=" http://alexaner.etowns.net ">alexaner.etowns.net</a> <a href=" http://janisy.republika.pl ">janisy.republika.pl</a> <a href=" http://nixnax.yi.org ">nixnax.yi.org</a>