February 22, 2012, Wednesday, 52

Mobitouch Browser

From Mobitouch cube

Jump to: navigation, search

Contents

Compiling source files

Requirements

The minimal required NetBeans installation
The minimal required NetBeans installation

To compile source files you need to have installed in order on your pc this applications:

Source code

Here you can download the source code as zipped Netbeans project folder: Browser Example.zip

J2ME Polish Installation & Configuration Instruction

During the installation of J2ME Polish you have to specify where you have installed NetBeans and the Wireless Toolkit, and you have to select that you wish to install the NetBeans module. The module will be installed automatically the next time you quit NetBeans.

In the Paths page:

You have to set the Wireless Toolkit wtk.home that is stored in the \mobility8\WTK folder of your NetBeans home folder...
Image:wtk home.png


...and specify where to find NetBeans netbeans.home
Image:NetBeans_home.png

NOTE: you need writing rights for your NetBeans installation directory to install the J2ME Polish integration.

Select to install the NetBeans integration:


Now you have to restart NetBeans.


Finally you need to extract the content of custom-device-and-vendors.zip (custom-devices.xml and custom-vendors.xml) in J2ME Polish home folder. These files contain the definition of Waymedia/basic phone, a virtual MIDP2.0/CLDC1.1 with bluetooth and softkeys support.

Building options

Once you have installed and configured the environment, unzip the Browser Example.zip in your workspace.
Open NetBeans, click on File, Open Project, then select Browser Example directory and click on Open Project.
Go to Window File, open build.xml go to line 14 and edit:

<property name="polish.home" location="/home/carmelo/software/J2ME-Polish" />

Change the location with your J2M Polish home (i.e. C:\Program Files\J2ME-Polish2.0.6).
Then right-click on Browser Example and select Proprieties.
In the new window select Libraries and Resources and remove the line that contains /import/enough-j2mepolish-client.jar then click on add Jar/Zip and go to your J2ME Polish home folder then into import folder, finally select enough-j2mepolish-client.jar.

Now you can Run the Project. Image:NetBeans_run.png