Pages

Tuesday, February 19, 2008

J2ME+Polish+Netbeans+Linux Is possible ...

Dear all,

If somebody doubt "How linux can be used for proffesional J2ME development?" But , I would say "Yes, Its very much feasible"

Netbeans & Mobility Pack Instalation :

First of all get your copy of Netbeans mobility pack.

Get free CD from Netbean containing JDK, Latest Netbeans ( IDE & Mobility plugin )
http://www.netbeans.org/about/media.html
OR
download mobility pack & Netbeans IDE

wtk 2.2 download for Linux - Worked great with FC6 ;)
http://java.sun.com/products/sjwtoolkit/download-2_2.html

Latest wtk and jdk are available :
http://java.sun.com/javame/downloads/index.jsp

If you dont like to use emulator provided by wtk, we can also use microemulator(see on source forge)

J2me-Polish integration with Netbeans

Get j2me-polish latest jar , run it using
java -jar j2me-polish.jar

start a new installation procedure for j2me-polish

Follow below steps to make polish working with netbeans :

For integrating J2ME Polish with NetBeans 4.0 create a new project and copy the sample project from ${polish.home}/sample into your new project with a filemanager.
Rightclick the build.xml and choose "Run Target" > "j2mepolish" for running the example.
• Create a new project:
Go to "File" >"New Project" and select "Mobile" >"Mobile Application"
as your project type. Give the project any name and choose any folder as the
project's home. Deselect the "Create Hello MIDlet"option and select "Finish" to create the
project.
• Copy the sample project: Navigate to the "${polish.home}/sample" directory with your filemanager (e.g. Windows Explorer on Windows or Finder on Mac OS X). Select the "resources", "resources2" and "src" folders as well as the "build.xml" file and copy all into the folder of your NetBeans project. Overwrite any existing files.
• Return to NetBeans, rightclick
your new project in the "Projects" view and select "Refresh
Folders". You can now view the sample application in the "de.enough.polish.example" package.
• Right click your project again and select "Properties". Go to "Build" and select "Libraries and
Resources". Select "Add Jar/Zip" and add the "${polish.home}/import/enoughj2mepolishclient.jar" file to your project.
• Now switch to the "Files" view and right click the "build.xml" file. Select "Run Target" >
"Advanced". Write "test, j2mepolish" in the following dialog, so that the "test" target is executed first, followed by the "j2mepolish" target. J2ME Polish now executes and starts the WTK emulator



I hope , once you get above things installed , we can proceed for any kind of development of J2ME..

:)

Enjoy.

No comments:

Post a Comment

Comments welcome :