Friday, December 25, 2009

Ticker in Java ME

A Ticker is simply a scrolling text across the device screen.



The method setTicker(Ticker) can be used with Displayable, to set Ticker replacing any previous ticker.

- Start Java ME SDK 3.0,

- Create a new project of MIDP Application in Java ME SDK Category (it's the only category currently), with name of HelloTicker. Accept the default Project Location and Project Folder, and also select to Set as Main Project and Create Hello MIDlet. Accept the Default Platform Selection

- Insert the code below inside the method startApp(), as shown in the picture.

Ticker ticker = new Ticker("...this is Ticker!");
Displayable displayable = Display.getDisplay(this).getCurrent();
displayable.setTicker(ticker);


Thursday, December 24, 2009

Java Platform Micro Edition Software Development Kit 3.0 for Mac OS

The Java ME SDK 3.0 is now available for Windows XP and Vista 32-bit, and for the Mac OS. The Mac OS release brings support for CLDC mobile development to Mac users for the first time.

How to Install for Mac OS
  1. Verify that your system meets the preceding system requirements.
  2. Download the DMG file.
  3. Double-click the DMG file.
  4. Click Agree to accept the license and continue the installation.
  5. The installer displays the installation panel. Dragging the Java ME SDK application icon over the Applications folder link will install Java ME SDK in the Applications folder. You can also use the Finder to move the application.
  6. In the Applications directory, click the Java ME SDK icon to start the application. Wait a few seconds for the Device Manager to detect the default devices delivered with the SDK.




Friday, December 11, 2009

The NetBeans IDE 6.8

If your host PC is run on Windows or Linux plaform, The NetBeans IDE 6.8 is another choice to develop Java ME application. (Java ME is not supported in Mac OS X and Solaris version of NetBeans IDE currently)

The NetBeans IDE is an award-winning integrated development environment available for Windows, Mac, Linux, and Solaris. The NetBeans project consists of an open-source IDE and an application platform that enable developers to rapidly create web, enterprise, desktop, and mobile applications using the Java platform, as well as JavaFX, PHP, JavaScript and Ajax, Ruby and Ruby on Rails, Groovy and Grails, and C/C++.

Thursday, November 26, 2009

Hello Java ME

After installed, the application Java_ME_SDK_3.0.app is installed in Applications folder.

Start it, you will see the application, with a Start Page. Click


Select MIDP Application in the Projects window, and click Next>.


Modify Project Name, to Hello Java ME, and click Next.


You can accept all the default selection and click Finish.


Your first Java ME application will be generated


Now click the GREEN Run Main Project icon to run your application.


That's!

Java ME SDK 3.0 for Mac OS should now work with both Java 1.5 and Java 1.6

Update:

  • Nov 12: The issue regarding Java 1.5 has been fixed. The Java ME SDK 3.0 for Mac OS should now work with both Java 1.5 and Java 1.6.


Wednesday, November 25, 2009

Java ME SDK 3.0 for Mac OS

The Java ME SDK 3.0 for Mac OS (Early Access) was released. It supports CLDC and includes the following features:
  • Brings the functionality of the Java ME SDK 3.0 to Mac developers – first official Mac release.
  • Unique architecture enables the developer to work with the real device directly from within the ME SDK 3.0.
  • Communication with the devices, application deployment and even On-Device debugging are supported over Wi-Fi.
  • Supports the latest CLDC Hot Spot VM and Java Micro Edition APIs
  • High-end Tools for optimizations: Profiler, Network Monitor, Support for Debugging, Wireless Messaging Console and more
  • Introducing JavaFX 1.2.1 Mobile emulator running on Mac OS
  • Integrated Device Search Database for easy reference
  • Powerful Autoupdate for additional plug-ins and product updates
  • Development Environment based on NetBeans Platform
It is ready for download now.

Important Installation Note:
The Java ME SDK 3.0 for Mac OS requires Java 1.6. You can download Java 1.6 from Apple’s update website or install it via the Mac OS “Software Update”. Next, be sure to verify Java 1.6 is set as the default runtime for Java applications in the Java Preferences (Applications->Utilities->Java Preferences).

Java ME-er

Java ME-er