Anyone here managed to develop a java applications that connects to a bluetooth enabled device such as a mobile phone etc?
I read it was possible using the un Java Wireless Toolkit 2.2 api that can be downloaded here
http://java.sun.com/produ...toolkit/download-2_2.html but i since i don't have any bluetooth devices i can't test.
Java 2, Micro Edition (J2ME) Wireless Toolkit 2.2 Release
Japanese Japanese version
Simplified Chinese Chinese simplified version
Traditional Chinese Chinese traditional version
The J2ME Wireless Toolkit is a set of tools for creating Java applications that run on devices compliant with the Java Technology for the Wireless Industry (JTWI, JSR 185) specification. It consists of build tools, utilities, and a device emulator.
[New] WTK 2.2 patch 200511 - fixes failures in the OBEX transfer over Bluetooth (BTGOEP protocol) where the wrong exception is being thrown when trying to connect after a connection has been closed. Dec. 16, 2005
WTK 2.2 patch 200508 - fixes support for floating point in the JAX-RPC package in the Web Services API (JSR 172). Oct. 14, 2005
The J2ME Wireless Toolkit implements impressive capabilities which are exposed through standard APIs. The APIs are defined through the Java Community Process (JCP):
* Connected Limited Device Configuration (CLDC) 1.1 (JSR 139)
* Mobile Information Device Profile (MIDP) 2.0 (JSR 118)
* Java Technology for the Wireless Industry (JTWI) 1.0 (JSR 185)
* Wireless Messaging API (WMA) 2.0 (JSR 205)
* Mobile Media API (MMAPI) 1.1 (JSR 135)
* PDA Optional Packages for the J2ME Platform (JSR 75)
* Java APIs for Bluetooth (JSR 82)
* J2ME Web Services Specification (JSR 172)
* Mobile 3D Graphics API for J2ME (JSR 184)
In addition to quality improvements and new APIs, here are some of the exciting new development features in J2ME Wireless Toolkit 2.2. You can get more detailed information about the new toolkit by referring to the accompanying User's Guide and Release Notes.
* Support for many new APIs (see above)
* Support for Multimedia Messaging Service (MMS) in the WMA console
* Simulated Bluetooth environment for JSR 82 support
* New large-screen (QVGA) DefaultColorPhone emulator skin
* Network monitor support for MMS and Bluetooth
You can also develop applications for CLDC 1.0 and MIDP 1.0 with this release.
The J2ME Wireless Toolkit 2.2 includes all of the advanced development features found in Wireless Toolkit 2.1, such as MIDlet signing, certificate management, integrated over-the-air (OTA) emulation, push registry emulation, and more.
System Requirements - Software
* Microsoft Windows XP or (unsupported) Linux-x86
* JavaTM 2 SDK, Standard Edition (J2SE SDK), version 1.4.2 - if you plan to do actual development, or JavaTM 2, Standard Edition Runtime Environment (JRE), version 1.4.2 - if you only plan to run the demonstration applications.
To download the SDK or JRE you want, go to
http://java.sun.com/j2se/downloads.htmlSystem Requirements - Hardware
Minimum hardware requirements are:
* 50 MB hard disk space
* 128 MB system RAM
* 800 MHz Pentium III CPU
Installing the J2ME Wireless Toolkit on Windows
Run the installer, j2me_wireless_toolkit-2_2-windows.exe. Follow the instructions provided by the installer.
Installing the J2ME Wireless Toolkit on Linux
To install the toolkit, run the self-extracting installer, j2me_wireless_toolkit-2_2-bin-linuxi386.bin.
//edit
seems that Java Platform Micro Edition Software Development Kit 3.0 is the preferred choice to develop mobile applications using Java since it's the latest release by sun (i believe, correct me if i'm wrong)
http://java.sun.com/javame/downloads/sdk30.jspJava Platform Micro Edition Software Development Kit 3.0
Java ME Platform SDK is a state-of-the-art toolbox for developing mobile applications. It integrates CLDC, CDC and Blu-ray Disc Java (BD-J) technology into one SDK. Java ME SDK 3.0 is the successor to the popular Java Wireless Toolkit 2.5.2 and Java Toolkit 1.0 for CDC. It provides device emulation, a standalone development environment and a set of utilities for rapid development of Java ME applications.
What's New
Java ME Platform SDK includes the advanced tools found in Java Wireless Toolkit 2.5.2 [for CLDC] and Sun Java Toolkit 1.0 [for CDC]. The expanded emulation capability includes over-the-air (OTA) emulation and supports the push registry, GPS, sensors, and many more new features.
Key Features
The Java ME SDK provides device emulation, a standalone development environment, and a set of utilities for rapid development of Java ME applications. It provides the following features, which are described in detail below:
* Integration with third-party emulators and Windows Mobile devices
* On-device deployment and on-device debugging
* CLDC/MIDP, CDC/FP/PBP/AGUI, and BD-J integrated into one SDK
* New CLDC HotSpot Virtual Machine
* Optimized MSA 1.1 stack with extensions
* Profiling support
* BD-J support
* New development environment based on Netbeans Platform
* Lightweight UI Toolkit (LWUIT) integration
* Device search database integrated in SDK
* JavaFX Mobile Emulator included
Back to top
Image Description
System Requirements
This section lists minimum hardware and software requirements for installation on your PC. BD-J software requirements and the device environment requirements can be addressed as necessary after the installation.
Minimum Hardware
* 300-350 MB hard disk space
* 1 GB system RAM
* 1 GHz Pentium CPU
Required Software
* Microsoft Windows XP or Vista 32-bit with recent service packs
* Java SE Development Kit - JDK 1.6 or higher
* Apple QuickTime player (required to play AMR media on Windows)
BD-J Software
Only required for BD-J development.
* Player that supports the Blu-ray format, such as WinDVD reference player, or ArcSoft TotalMedia Theatre. Both players were tested with Java ME SDK 3.0.
Device Environment
Required only for on-device test and debug.
* ActiveSync 4.5 for Windows
* Windows Mobile 6.0 platform installed on a target device with network connectivity, 32-bit RISC based microprocessor, and minimum 64 MB RAM.
* Microsoft Device Emulator
Back to top
How to Install
1. Verify that your system meets the preceding minimum hardware and software requirements.
2. Download Java ME Platform SDK 3.0.
3. Double-click the executable file to start the installation, and follow the prompts.
4. As the installation concludes, the Device Manager appears in the Windows system tray.
5. To install CLDC emulation on a Windows Mobile Device or a Windows Mobile Emulator, see Java ME Platform SDK and Windows Mobile Integration.
6. To configure the BD-J environment, see "BD-J Support" in the online help.
Back to top
Image Description
Java Community Involvement
The Java community projects PhoneME and PhoneMEAdvanced are the core around which Java ME Platform SDK is built. The community can also contribute to examples shipped with the product through the MEApplicationDevelopers project or contribute to features of a Lightweight UI Toolkit.
Back to top
Key Features
Integration with 3rd party emulators and Windows Mobile devices
The new Java ME Platform SDK architecture allows integration of 3rd party emulators and devices. Java ME Platform SDK comes with Sun's Java runtime environment for Windows Mobile. A user can install this runtime on a Windows Mobile device or a Microsoft device emulator and experience all the on-device features of Java ME Platform SDK.
On-device deployment and on-device debugging
Having an emulator doesn't eliminate the need for testing your application on a real device. The new SDK simplifies this process with seamless deployment to real devices and on-device debugging.
CLDC/MIDP, CDC/FP/PBP/AGUI and BD-J integrated into one SDK
It's no longer necessary to download and install separate packages. Java ME SDK integrates into one package Sun's Java ME runtimes, emulation, and developer tools for CLDC, CDC and BD-J stacks.
New CLDC HotSpot Virtual Machine
The deprecated KVM has been replaced with the CLDC HotSpot VM. This new implementation is a highly-optimized virtual machine which provides a significant performance advantage over KVM.
Optimized MSA 1.1 Stack with Extensions
Java ME Platform SDK contains an optimized CLDC/MIDP stack. This implementation supports multitasking and is built upon CLDC 1.1 and MIDP 2.1. It also contains the following new JSRs:
* Mobile Sensor API (JSR 256)
* XML API for Java ME (JSR 280)
* Java Binding for the OpenGL ES API (JSR 239)
* Payment API (JSR 229)
Profiling support
A built-in profiler lets you easily profile your CLDC/MIDP applications. The profiler is based on the successful Netbeans profiler used in VisualVM, which is bundled with Java SE 6.
BD-J support
The Java ME Platform SDK allows you to easily set up, compile and sign a BD-J project. The project can then be burned by a third-party authoring tool and played by a third-party Blu-ray Disc player.
New development environment based on the Netbeans Platform
The Java ME SDK leverages the successful Netbeans platform. It provides a reliable and flexible windowing system, a logging facility, and a modularized environment with the ability to update on the fly. A shared project system allows easy transition of your project to the rich, full-featured CLDC/MIDP development tool Netbeans Mobility Pack.
Lightweight UI Toolkit (LWUIT) integration
The open-source Lightweight UI Toolkit has recently generated a lot of interest and Java ME Platform SDK is the first developer's kit that comes with a built-in LWUIT library, resource manager and demo application.
Device search database integrated in SDK
Find technical specifications of thousands of mobile devices using the built-in WURFL database search engine. The database search tool is versatile and easy to use, allowing you to search a large number of mobile device properties. More than 8000 device specifications are accessible from the Java ME Platform SDK.
JavaFX Mobile Emulator
The SDK includes the JavaFX Runtime and two default phone skins for JavaFX Mobile. The SDK may run a JavaFX application in JAD and JAR form and allows you to profile JavaFX Mobile applications.