Oracle® Java Micro Edition Software Development Kit Developer's Guide Release 3.0.5 for Windows E24265-04
Total Page:16
File Type:pdf, Size:1020Kb
Oracle® Java Micro Edition Software Development Kit Developer's Guide Release 3.0.5 for Windows E24265-04 March 2012 This document describes how to use the Java ME SDK plugin for NetBeans. Java ME SDK Developer's Guide, Release 3.0.5 for Windows E24265-04 Copyright © 2009, 2012, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065. This software is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications which may create a risk of personal injury. If you use this software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. This software and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services. Contents Preface ................................................................................................................................................................. xi Audience ..................................................................................................................................................... xi Documentation Accessibility .................................................................................................................. xi Conventions ................................................................................................................................................. xi Related Documents .................................................................................................................................... xi 1 Getting Started Quick Start ................................................................................................................................................. 1-1 Tips for Legacy Toolkit Users ................................................................................................................. 1-2 Java ME SDK Update Center ................................................................................................................. 1-3 2 Platforms Emulation Platforms ................................................................................................................................ 2-1 CLDC and MIDP Stack...................................................................................................................... 2-1 CDC Stacks.......................................................................................................................................... 2-2 Managing Java Platforms ........................................................................................................................ 2-3 Java ME Platforms (CLDC and MIDP) ........................................................................................... 2-3 Java SE and CDC Platforms.............................................................................................................. 2-3 Create a Platform for Legacy CDC Projects ................................................................................... 2-4 3 Using Sample Projects Running a Project ..................................................................................................................................... 3-1 Troubleshooting ........................................................................................................................................ 3-2 Sample Project Overview ....................................................................................................................... 3-3 Configuring the Web Browser and Proxy Settings ............................................................................ 3-5 Resolving Reference Problems .............................................................................................................. 3-6 Running MIDP and CLDC Sample Projects ....................................................................................... 3-6 Running the AdvancedMultimediaSupplements Sample Project .............................................. 3-7 Image Effects................................................................................................................................ 3-7 Camera.......................................................................................................................................... 3-7 Moving Helicopter...................................................................................................................... 3-8 Music Effects................................................................................................................................ 3-8 Running the Demos Sample Project................................................................................................ 3-8 Colors............................................................................................................................................ 3-9 Properties ..................................................................................................................................... 3-9 iii Http ............................................................................................................................................... 3-9 FontTestlet................................................................................................................................. 3-10 Stock........................................................................................................................................... 3-10 Tickets........................................................................................................................................ 3-11 ManyBalls.................................................................................................................................. 3-12 MiniColor .................................................................................................................................. 3-12 Chooser...................................................................................................................................... 3-12 HttpExample............................................................................................................................. 3-12 HttpView................................................................................................................................... 3-12 PushExample ............................................................................................................................ 3-12 Running FPDemo............................................................................................................................ 3-13 Running Games............................................................................................................................... 3-13 Running Network Demo................................................................................................................ 3-13 Socket Demo ............................................................................................................................. 3-13 Datagram Demo....................................................................................................................... 3-14