Is this possible to use LWUIT in sun java wireless toolkit 2.5.2 midp2.0? - java-me

please let me know whether it is possible or not? if yes give me the procedure to setup and run the application.

You can easily use LWUIT with java wireless toolkit. You can use LWUIT 1.4 jar file. If you want to latest source code, checkout here... Use netbeans, build the LWUIT project and get latest LWUIT jar file. Netbeans already having sun java wireless toolkit 2.5.2. In eclipse you need to add the plugin for this. and use the LWUIT jar file for your application.

LWUIT is a framework.That builds upon j2me.Better u refer the oracle site for further information.

Related

javax.microedition.lcdui does not exist

I am trying to learn j2me so I try a simple j2me app at netbeans but code can not find javax.microedition.lcdui package.I have install Java 1.8 with J2ME
The project at netbeans has cldc 1.8 and MEEP 8.
The code can find javax.microedition.midlet, lcdui does not exist anymore?
i had this problem too. The reason is because java me sdk uses micro edition and embedded profile(meep) and the lcdui class is a part of midp. Any app created on an meep profile using lcdui class is denied by the compiler. The possible solution is downloading the wtk. It includes the midp profile and lcdui class

Generating netbeans project with Lwuit

I am trying to generate a netbeans project with Lwuit editor. But gets this error message that some library are missing and that WTK 2.5.2 CLDCC Cannot be found. any idea on how to fix this
http://www.oracle.com/technetwork/java/javame/javamobile/download/lwuit/index.html
Is the location of the library that you must download.
Additionally you may need the wireless toolkit though I am not sure why.
http://www.oracle.com/technetwork/java/download-135801.html
If you are writing for mobile devices I strongly recommend that you check out Codename One which is the open source product developed by the original designers at Sun of lwuit. http://www.codenameone.com/

javafx.scene.control.Pagination not found

I'm using java 1.7_07 which include javafx 2.2.1.
When I try to import the package javafx.scene.control.Pagination Netbeans doesn't find it. The class is present in the API documentation, I can't see the reason.
Check your javafx version: How to get the version number of JavaFX?
You may use Java Platform in NetBeans settings being setup to older JavaFX and Pagination is a relatively new control.

Building JavaFX 2.0 App on Mac, deploying on Windows

What are your strategies for building your JavaFX application on Mac and deploying on Windows ? I am currently having issues with how to bundle up my application so that it is double clickable on both platforms. I have tried using the ant-tools, but the jar file produced complain that JavaFX 2.1 needs to be installed on my Mac (how can I place the JavaFX 2.1 DP distribution so that the double-clickable Jar knows where to find it ?)
On the Windows side, Java7u3 is installed, which "comes with" Java FX 2.0.3. I need for the application to be able to execute as a double clickable JAR file here as well.
Any suggestions as to how this is set up ? I am using Maven to build my project. The more details you can provide the better.
Since 2.1 release the only (official) way to install JavaFX on Mac is cobundle installation with Java 7u4 (opposite to developers preview versions being published in zip archives).
If JavaFX on Mac was installed this way then jar with JavaFX can be run by double-click.
On Windows same jar by double-click will ask to install "JavaFX runtime" and will start if one is present already.
N.B.: in 2.2 release Mac/Linux would start to support jnlp (WebStart) run (already supported on Windows) which may suit you even better.

How do I get started with J2ME?

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

Resources