By 7:16 am 3 Comments

MicroEmulator & Opera Mini Mod



Microemulator is J2ME Device Emulator is pure Java implementation of J2ME in J2SE. It allows demonstrate MIDlet (MIDP/CLDC) based applications as a standalone Java application or as web browser applet.

Context:
1. Running application
2. Applet config
3. Building MicroEmulator from sources

Requirements:
- J2SE 1.4+

There are two methods of running apps in emulator:

1. As an application:

  • java org.microemu.app.Main (MIDlet application main class) or, java org.microemu.app.Main (MIDlet jad file)
    • microemulator.jar must be in CLASSPATH
  • java -jar microemulator.jar (MIDlet application main class) or, java -jar microemulator.jar (MIDlet jad file)
    • (MIDlet application main class) parameter is optional, if used MIDlet application jar file must be in CLASSPATH
    • (MIDlet jad file) must have .jad extension,
    • for Nokia UI support include nokiaui.jar to the CLASSPATH,
    • for Siemens API support include siemensapi.jar to the CLASSPATH.

2. In applet:

Preparing applet version of MIDlet should be done by selecting Save for Web menu item from File menu
in standalone MicroEmulator application. During that process additional MIDlet bytecode modification
is performed in order to satisfy some compatibility issues running Java ME code inside Java SE.

Produced html code:

<applet code=”org.microemu.applet.Main”
width=226 height=471 archive=”microemu-javase-applet.jar,(MIDlet application jar)”>
<param name=”midlet” value=”(MIDlet application main class)”>
</applet>

- for Nokia UI support include nokiaui.jar to the archive attribute,
- for Siemens API support include siemensapi.jar to the archive attribute.
There is additional parameter in applet definition tag if you want start applet with another device than default:

<param name=”device” value=”({device class name} | {device.xml file location})”>

eg. minimum phone included in distribution has org/microemu/device/minimum/device.xml

and remember to include new device jar into applet archive tag
eg. minimum phone included in distribution has minimum.jar

Example for SimpleDemo MIDlet, Nokia UI support and Minimum device:

<applet code=”org.microemu.applet.Main”
width=157 height=285 archive=”microemu-javase-applet.jar,nokiaui.jar,minimum.jar,simpledemo.jar”>
<param name=”midlet” value=”org.microemu.midp.examples.simpledemo.SimpleDemo”>
<param name=”device” value=”org/microemu/device/minimum/device.xml”>
</applet>

Example for SimpleDemo MIDlet and Minimum device with Mouse and color:

<applet code=”org.microemu.applet.Main”
width=157 height=285 archive=”microemu-javase-applet.jar,minimum.jar,simpledemo.jar”>
<param name=”midlet” value=”org.microemu.midp.examples.simpledemo.SimpleDemo”>
<param name=”device” value=”org/microemu/device/minimum/device-color.xml”>
</applet>

Example for SimpleDemo MIDlet and Large Skin:

<applet code=”org.microemu.applet.Main”
width=292 height=618 archive=”microemu-javase-applet.jar,large.jar,simpledemo.jar”>
<param name=”midlet” value=”org.microemu.midp.examples.simpledemo.SimpleDemo”>
<param name=”device” value=”org/microemu/device/large/device.xml”>
</applet>

3. Building MicroEmulator from sources

We are using maven2 to build project

To build project you need this environment variables:
JAVA_HOME, SWT_HOME (to build swt module) and WTK_HOME to compile and test MIDlets

To create Eclipse projects run:
mvn eclipse:clean eclipse:eclipse -DdownloadSources=true

To run build without tests:
mvn -Dmaven.test.skip=true

  • Project Admins : barteo, vlads
  • Developers : 4
  • Development Status : 5 – Production/Stable
  • Intended Audience : Developers
  • License : GNU Library or Lesser General Public License (LGPL)
  • Operating System : OS Independent (Written in an interpreted language)
  • Programming Language : Java
  • Topic : Software Development, Emulators
  • Translations : English
  • User Interface : Java AWT, Java Swing, Java SWT
  • Project UNIX name : microemulator
  • Registered : 2001-06-25 08:56

DOWNLOAD MICROEMULATOR 2.0.2

MicroEmulator & Opera Mini Mod

OPERA MINI MOD

konfigurasi:

  1. double-click “microemulator.jar”. atau ketik “java -jar microemulator.jar” di console (Command Prompt). (Anda harus memiliki JRE agar bisa menjalankan ini)
  2. lalu ke “Options > Select device”, klik “Add…”, terus ke “microemulator\devices” pilih “microemu-device-resizable.jar”
  3. pilih “Resizable device” lalu “Set as default”
  4. klik “Resize” dan masukan ukuran yang anda inginkan (misal sesuai ukuran monitor anda)
  5. trus “File > Open JAD” pilih opera mini jad yang tadi kamu download
  6. “Opera Mini” muncul di daftar, klik “Start”

Save page dan download :

  1. Buat shortcut untuk microemulator.jar dengan cara klik kanan -> create shortcut
  2. Klik kanan shortcut tersebut – Properties – timpa field targe dengan : C:\WINDOWS\system32\java.exe -cp microemulator.jar;lib/microemu-jsr-75.jar org.microemu.app.Main –impl org.microemu.cldc.file.FileSystem org.microemu.examples.fcview.FCViewMIDlet apps\mini.jad
  3. edit file config2.xml di C:/Documents and Settings/usernamekamu/.microemulator/config2.xml menggunakan text editor (misal notepad / notepad++ dll)
  4. tambahkan baris-baris berikut sebelum </config>
  5. <extensions>
    <extension>
    <className>org.microemu.cldc.file.FileSystem</ className>
    <properties>
    <property VALUE=”C:\” NAME=”fsRoot”/>
    </properties>
    </extension>
    </extensions>

  6. Save
  7. Jalankan microemulator dengan klik dua kali pada shortcut yang tadi dibuat
  8. Selesai, fitur save web page muncul

proxy untuk browsing :

Edit config2.xml di C:/Documents and Settings/usernamekamu/.microemulator/config2.xml

<config>

<system-properties>
<system-property name=”http.proxyHost” value=”webcache.mydomain.com”></system-property>
<system-property name=”http.proxyPort” value=”8080?></system-property>
<system-property name=”http.nonProxyHosts” value=”localhost”></system-property>
</system-properties>

</config>

ganti webcache.mydomain.com dengan proxy kamu dan 8080 dengan port proxy yang kamu gunakan.

ariefew.com


Post Update :
Date : Friday, April 18, 2014 - Jumat, 18 April 2014
Posted in: internet, selular


Related posts "MicroEmulator & Opera Mini Mod":

3 Comments on "MicroEmulator & Opera Mini Mod"

Trackback | Comments RSS Feed

  1. yoto says:

    makasih infonya. Berguna banget buat ngedit settingan microemulator biar bisa pake proxy

    [Reply]

  2. edy says:

    kug Q g bisa ya????knapa???? paahal konfigurasinya udah tak rubah…. N aku tambahin sesuai dengan tulisan yang diatas…… bantuanya donk..kira2 pa yg kurang??

    [Reply]

  3. alinoer says:

    lebih rinci lagi sa gk?

    [Reply]

Post a Comment


5 − 3 =