Pages

Showing posts with label J2ME. Show all posts
Showing posts with label J2ME. Show all posts

Tuesday, February 10, 2009

micro emulator on FC6 Linux

Micro emulator :

Tried hands on java-j2me emulator on linux machine. Its also helpful in j2me development & trying out small java apps.

To add micro emulator as command in linux, put below lines in a file named microemulator. change permissions to executable. put the file in system path ie /usr/bin or any bin path

Command can set user-agent as "Nokia6030" same can be changed to any phone. Using proxy to connect net. Assuming microemulator is installed at path
/opt/microemulator-2.0.1/
======================================================================
java -Dhttp.agent="Nokia6030/Nokia" -Dhttp.proxyHost= -Dhttp.proxyPort= -Xms32m -Xmx64m -jar /opt/microemulator-2.0.1/microemulator.jar -cp /opt/microemulator-2.0.1/lib/t/microemu-nokia-120.jar $1
======================================================================

You can delete RMS data stored by application by deleting midp suite data path : /home/mahendra/.microemulator/suite-*

For more details :


Home Page
Usage
Demo
Images



Screenshot as mentioned



Screenshot 240X320 device


For further help/assistance ... post query below

Tuesday, February 3, 2009

Ssh on Mobile !

Guys,

Many of mobile phone user wish to access their server through Ssh proto. I got something for you. Only thing you should have is basic midp1.0 supported phone

You can download the app from http://www.xk72.com/midpssh/download.php here . Depending on phone capabilily you should donwload java/midp app.

Only you need is Gprs connectivity to download and connect the server. App has nice functionality like macro, store session, font change.


ps -eaf Screen Shot 2

Here are some screen shots :

Top command o/p on N72 with midp ssh. I even have putty for Symbian client. But I think this is the best ssh client.








TOP Screen Shot 2


Another with dynamic screen. I feel only drawback is connectivity handled by java. S60 Putty work in better manner for connectivity.. Its bit obvious as java has to access native API of Symbian/Proprietor OS of the Phone.

You can download Putty for S60 from here

Download Page S60

If you are facing any connectivity issue.. Let me know. Would like to share some more stuff.. :)

Pls make sure you have unlimited data plan for GPRS access. :) ... Should not get heart attach on seeing mobile bill ;)

Enjoy

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.