Setting up the development environment: Difference between revisions
Jump to navigation
Jump to search
(Updated) |
No edit summary |
||
Line 12: | Line 12: | ||
I'll assume that you want to set up the Sony Ericsson kit on Windows and the SUN kit on linux. |
I'll assume that you want to set up the Sony Ericsson kit on Windows and the SUN kit on linux. |
||
=Installation for Windows= |
|||
You need: Windows 2000/XP, (local) administrative rights, additionally a normal user for everyday work |
You need: Windows 2000/XP, (local) administrative rights, additionally a normal user for everyday work |
||
Line 21: | Line 21: | ||
# Unpack Eclipse to the hard drive (e.g. in <code><var>c:\eclipse</var></code>) |
# Unpack Eclipse to the hard drive (e.g. in <code><var>c:\eclipse</var></code>) |
||
# optional: create a start menu item for <code><var>c:\eclipse</var>\eclipse.exe</code> |
# optional: create a start menu item for <code><var>c:\eclipse</var>\eclipse.exe</code> |
||
# Install Subversion: http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91 (the svn-1.2.3-setup.exe) |
|||
# Adjust the rights on <code><var>c:\eclipse</var></code> to Everybody: Read, Execute (make sure these are inherited to all files and folders below) |
# Adjust the rights on <code><var>c:\eclipse</var></code> to Everybody: Read, Execute (make sure these are inherited to all files and folders below) |
||
# Run Eclipse and install EclipseME per [http://eclipseme.org/docs/installEclipseME.html these] installation instructions (Note: the correct update site is <code>http://www.eclipseme.org/updates/</code> and <em>not</em> <code>http://eclipseme.sourceforge.net/updates/</code> which erroneously is shown in the screenshots.) Don't bother with the configuration instructions yet. |
# Run Eclipse and install EclipseME per [http://eclipseme.org/docs/installEclipseME.html these] installation instructions (Note: the correct update site is <code>http://www.eclipseme.org/updates/</code> and <em>not</em> <code>http://eclipseme.sourceforge.net/updates/</code> which erroneously is shown in the screenshots.) Don't bother with the configuration instructions yet. |
||
# Install Subclipse per [http://subclipse.tigris.org/install.html these instructions]. You can combine this step with the previous one. |
|||
# Exit Eclipse. |
# Exit Eclipse. |
||
# Install the Sony-Ericsson J2ME SDK from [http://developer.sonyericsson.com/site/global/docstools/java/p_java.jsp], for example to <code><var>C:\SonyEricsson</var></code> |
# Install the Sony-Ericsson J2ME SDK from [http://developer.sonyericsson.com/site/global/docstools/java/p_java.jsp], for example to <code><var>C:\SonyEricsson</var></code> |
||
Line 32: | Line 34: | ||
You're done. For information on how to start developing look at <code>file:///<var>C:/SonyEricsson</var>/J2ME_SDK/PC_Emulation/WTK2/docs/UserGuide-html/demonstrations.html</code>, and [http://developers.sun.com/techtopics/mobility/learn/midp/midp20/]. |
You're done. For information on how to start developing look at <code>file:///<var>C:/SonyEricsson</var>/J2ME_SDK/PC_Emulation/WTK2/docs/UserGuide-html/demonstrations.html</code>, and [http://developers.sun.com/techtopics/mobility/learn/midp/midp20/]. |
||
=Installation for Linux= |
|||
# Install the SUN Java SDK 1.4.2 or later by whatever method your distribution uses. (For example, Gentoo Linux: <kbd>emerge sun-jdk</kbd>) |
|||
# Install Eclipse: |
|||
#* If your distribution already has an eclipse package use this (Gentoo: Put <kbd>=dev-util/eclipse-sdk-3.1.1</kbd> into <code>/etc/portage/package.keywords</code> and <kbd>emerge eclipse-sdk</kbd>) |
|||
#* Otherwise: Download the [http://www.eclipse.org/downloads/ eclipse tarball], unzip it somewhere below your home directory and set your <code>PATH</code> environment variable to the eclipse directory. |
|||
# Install subversion by whatever method your distribution uses (Gentoo Linux: <kbd>emerge subversion</kbd>) |
|||
# |
Revision as of 09:00, 15 December 2005
The development environment for the SPAN project involves:
- A Wireless Toolkit: Either from Sony Ericsson (windows-only) or from SUN (Linux or Windows)
- Subversion, additionally the Subclipse Eclipse plugin
- Eclipse, version 3.1.x
- EclipseME
Already included in the subversion checkout will be
- Avetana JSR 82, or at least the Java sources thereof. For running Java code that establishes a direct Bluetooth connection you'll also need a Bluetooth stack that is supported by Avetana and the corresponding native library (libavetanaBT.so for Linux).
- kXML 2
- Bouncy Castle lightweight cryptography API
I'll assume that you want to set up the Sony Ericsson kit on Windows and the SUN kit on linux.
Installation for Windows
You need: Windows 2000/XP, (local) administrative rights, additionally a normal user for everyday work
- Become (local) administrator
- (optional, if needed) Get J2SE SDK 1.4.x from [1]
- (optional, if needed) Get DirectX 8.1 or later from [2] (there is a "runtime" quick link to the right)
- Get Eclipse 3.1.x from [3]
- Unpack Eclipse to the hard drive (e.g. in
c:\eclipse
) - optional: create a start menu item for
c:\eclipse\eclipse.exe
- Install Subversion: http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91 (the svn-1.2.3-setup.exe)
- Adjust the rights on
c:\eclipse
to Everybody: Read, Execute (make sure these are inherited to all files and folders below) - Run Eclipse and install EclipseME per these installation instructions (Note: the correct update site is
http://www.eclipseme.org/updates/
and nothttp://eclipseme.sourceforge.net/updates/
which erroneously is shown in the screenshots.) Don't bother with the configuration instructions yet. - Install Subclipse per these instructions. You can combine this step with the previous one.
- Exit Eclipse.
- Install the Sony-Ericsson J2ME SDK from [4], for example to
C:\SonyEricsson
- Adjust the rights on
C:\SonyEricsson
to Everybody: Read, Execute plus Full Access for your normal user (most of the programs in the SDK want to write in that directory) - (optional, if needed) Disable the "Windows Firewall", because it interferes with emulator-emulator connections and is generally not needed on a properly configured system. If your Windows is not hardened yet you might want to do that now: http://www.ntsvcfg.de/
- Become your normal user.
- Start Eclipse.
- Follow the configuration hints from [5] (the root of the Wireless Toolkit is
C:\SonyEricsson
)
You're done. For information on how to start developing look at file:///C:/SonyEricsson/J2ME_SDK/PC_Emulation/WTK2/docs/UserGuide-html/demonstrations.html
, and [6].
Installation for Linux
- Install the SUN Java SDK 1.4.2 or later by whatever method your distribution uses. (For example, Gentoo Linux: emerge sun-jdk)
- Install Eclipse:
- If your distribution already has an eclipse package use this (Gentoo: Put =dev-util/eclipse-sdk-3.1.1 into
/etc/portage/package.keywords
and emerge eclipse-sdk) - Otherwise: Download the eclipse tarball, unzip it somewhere below your home directory and set your
PATH
environment variable to the eclipse directory.
- If your distribution already has an eclipse package use this (Gentoo: Put =dev-util/eclipse-sdk-3.1.1 into
- Install subversion by whatever method your distribution uses (Gentoo Linux: emerge subversion)