How do I get started with J2ME? - java-me

i am new to J2ME. Please tell me how can I install it and where from.
What else do I have to download to install J2ME with JDK.

If you are a beginner, I recommend starting with Netbeans IDE. Download the version that includes the Mobility Pack. There are many tutorials available for developing mobile applications with Netbeans.
You may also need the WTK (don't remember if it comes with Netbeans),

It's not easy to start out with J2ME development (such as with MIDP) if you haven't done any Java programming before. You might want to start with this NetBeans quickstart.
There are also a bunch of emulators, requiring some configuration to do on your IDE (e.g. Netbeans or Eclipse). This is because different cell-phone manufacturers have their own implementation SDK's on J2ME (e.g. SonyEricsson).

Tools
The basic tool for j2me development is WTK(Wireless tool kit) from SUN which contains the emulator and other libraries needed for development. WTK also contains utilities for signing ,preverifying ,network monitoring tools.The IDEs like Netbeans and Eclipse are having plug ins for j2me development. These plugins will integrate the WTK and libraries.
For netbeans all are bundled into one package ,so easy to install and configure. For Eclipse you have to install the MTJ(mobile tools for java) plugin.
You can check both IDEs and select the one which your most comfortable with.

There is no such thing like a complete package. You need a basic setup and optional device-provider packages (mostly emulators).
Basic setup:
SUN WTK (includes basic J2ME SDK)
Eclipse Plugin
Optional packages:
Sony
Motorola
Nokia

You need the Sun wireless toolkit. You need this for the libraries, and also to 'preverify' your class files, otherwise they won't load on a mobile VM.
http://www.jguru.com/faq/view.jsp?EID=201507

You can download J2ME from the Sun Microsystems website

Related

Designer collaboration with RTC

I'm a designer working in a software development shop that uses Rational Team Concert. Back when we were using SubVersion, I could use Dreamweaver to make my CSS edits and everything played nice.
I'm doing fine with Visual Studio's RTC client for our .NET projects, but I'm at a loss on how to effectively collaborate on our Java projects. There doesn't seem to be an RTC client for Dreamweaver and I'm beating my head against a wall trying to get MyEclipse to play nice.
How do your designers/developers collaborate in RTC?
Thank you in advance.
Regarding MyEclipse, check on which version of Eclipse it is based on:
the latest MyEclipse10 is based on Indigo (Eclipse 3.7).
but this thread mentions that "RTC 3.0.1 supports Eclipse SDK 3.5.2, 3.6 and 3.6.1"
So depending the version of MyEclipse you choose, you might have some issue making the integration of RTC works properly in it.
Another solution would be to choose an Eclipse distro with WST (web standard tools) in it, and browse the WTP (Web Tools Platform) project to make sure the CSS editor is added to your chosen Eclipse package.
And then, install the RTC plugin in it.
You should install RTC into MyEclipse. You can do that by grabbing the p2 download from the download page, then opening Help->"Install New Software..." and adding the zip file as a repository.
Starting with RTC 4.0 there will be integration with the Windows shell, so your life should get much easier.

is there any way to run j2me(jar/jad)program without using sun java wireless tool kit or any ide for j2me?

I want to run my j2me program (jar/jad) in my PC without using any IDE or sun java wireless toolkit or something like that?
Is there any other tool provided by Oracle?
Yeah possible. You can use Java ME SDK 3.0.5. And lot of other SDK available for run the Java ME applications on PC. These are Sprint SDK, Samsung SDK, Sony Ericsson SDK or LG SDK. Also you can use Nokia RDA device for run your Java ME application.
Samsung released its tool kit which is similar to "sun java wireless tool kit". Its better to try that.Many vendors like Nokia provide their SDKs.It is better that you search the net and try.They provide the development environment so that you can develop a j2me app and also be able to run jad/jar files. But I think there is no only running environment.The tool for running environment comes with the development environment (SDKs).

Java mobile - Startup questions

I am a J2SE Java developer, and i am currently trying to learn Java mobile development to create mobile applications. I have a couple of startup questions please :
Do i have to install JDK 6.0 or above, or only a J2ME SDK is quite enough ? (I don't know if the JDK includes J2ME API or not).
I have seen other Java mobile SDKs like Metismo and AlcheMo that still allow me to write Java coded mobile applications, so are these better than the J2ME SDK or there are better options ?
I will use Eclipse Pulsar + J2ME SDK in development. Do i need anything else ? And is this developing environment suitable to write Java coded mobile applications to run on most mobile types or there are better options ?
For the Emulator does J2ME SDK include an emulator ? I have seen a Free emulator called Micro Emulator so is this suitable, or there are better choices ?
If you have any advices / Tutorials for me before i start learning the language and coding my applications that would be very nice.
I suggest Netbeans better for mobile development. Even you can use Eclipse pulsar also. Netbeans already having sun java SDK. you can download the Emulator from following sites,
Sprint SDK
Sony Ericsson SDK
Samsung SDK
Motorola SDK
Nokia SDK
See these tutorials for j2me developing,
J2ME Tutorials
J2ME Coding example-1
J2ME Coding example-2
J2ME Guide

I start programming in j2me, how to get the maximum compatibility with every cellphone?

I am a newbie to J2me. I am programming a Java program to recognise QRs.
The specifications of the projects include the compatibility with most of cellphones. For example, Nokia with Symbian, iPhone or HTC with windows mobile.
I have started downloading, JDK, WTK, eclipse and MTJ.
Any other advice would be of help.
To do this, I will need to provide a different distro for every commercial mark? or OS?
You can't run J2ME applications on iPhone or Android.
iPhone apps are written in Objective-C, and Android apps are written in regular Java (almost). Don't know about the Symbian case (but that probably runs J2ME just fine).
If you want a high degree of code-reuse, I strongly advice you to try to do the application web-based, preferably executed in the browser, or with a minimal OS-specific implementation of a front-end.

Java Micro Edition (JME) SDK for Mac OS X or Linux

The question is clear from the title.
Is there an SDK for the Java Micro Edition available for Mac OS X or Linux? Or does one need Windows XP to develop JME applications?
No, with a 'but'
There is no WTK (Wireless Toolkit) from the main vendors available for Mac (NetBeans Wiki reference) so basically you can't debug nor test the code. But, you can use an emulator from a third co: MPowerPlayer
If you are using netbeans in any other OS but windows, you still can download and add the J2ME packages using the tools/plugins menu.
Then you can add the MPowerPlayer to the IDE as a J2ME platform. Netbeans (and i guess any other IDE with J2ME WTK support) will recognize it as a valid WTK,
I've posted an specific entry about this in my blog, but it's in spanish, although maybe you can follow the images. Give it a try, and don't hesitate to ask anything:
J2ME in Mac Os with NetBeans
Offically Sun's WTK is available only on Linux and Windows, however both SDKs can be used on Mac to compile J2ME applications.
Unfortunately the emulator and the preverifier will not work (since they are not Java based) so you will not be able to test your application.
To solve this problem you can use MicroEmulator or MPowerPlayer for both emulation and preverification (you can also use PhoneME for preverification).
This is a good guide to setup you development environment using Eclipse and this one is good for Netbeans.
But, if I can give an advice (I'm working since two years on J2ME development and I'm a Mac user), it is better if you develop on Windows or Linux through a virtual machine, because the two emulators do not have a very good compliance to the JSR's standard and do not include all of them.
Moreover on OSX it will be very difficult for you to test features like Bluetooth or LocationAPIs.
Netbeans has a JME SDK
May be this is helpful, I've found a Java ME Developer Studio for Mac OS X, developed by Motorola, I haven't tested yet, it's only and EA Release, I'll try this one, and I'll let u know in a subsequent post,
http://developer.motorola.com/docstools/motodevstudio/javame/downloads/
Cheers
Oddly enough ... I just set this up 5 minutes ago on Linux.
You will need:
http://linux.com/archive/feature/122050
http://java.sun.com/products/sjwtoolkit/download.html <-- WTK
The WTK installer will ask where your JDK is. Do
find . -name "jar" -type f
and then where you have
/usr/lib/jvm/foo/bar/bin/jar
Knock of the 'jar' and give that path to the installer. This will install ktoolbar which includes a phone emulator.
The download netbeans and install the mobile addons
This is not pure J2ME, but includes most of the API
I am using it to develop an application for my SE-C902
Yes, the official SDK for OSX can be downloaded here: https://www.oracle.com/technetwork/java/javame/downloads/sdk30-mac-jsp-137878.html. Microemulator, http://www.microemu.org, also works well, and I've heard people use MPowerPlayer with success.

Resources