Microemulator

(New page: =Jave SE and Java ME= Download and untar/unzip # microemulator-2.0.3.zip from [http://www.microemu.org/ microemu] # ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-min-eval-30_jul_2009.tar.gz fr...)
(wikify and categorize)
Line 1: Line 1:
-
=Jave SE and Java ME=
+
{{expand}}
 +
 
 +
==Jave SE and Java ME==
 +
 
Download and untar/unzip
Download and untar/unzip
# microemulator-2.0.3.zip from [http://www.microemu.org/ microemu]
# microemulator-2.0.3.zip from [http://www.microemu.org/ microemu]
# ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-min-eval-30_jul_2009.tar.gz from [http://java.sun.com/javase/downloads/embedded.jsp Sun JaveSE ARMv6 Headful]
# ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-min-eval-30_jul_2009.tar.gz from [http://java.sun.com/javase/downloads/embedded.jsp Sun JaveSE ARMv6 Headful]
-
==Makefile==
+
 
 +
===Makefile===
 +
 
 +
<source lang="make">
  clean:
  clean:
  echo cleaning...
  echo cleaning...
Line 13: Line 19:
  cp $(DESTDIR)/opt/microemulator-2.0.3/devices/microemu-device-resizable.jar $(DESTDIR)/home/user/.microemulator/
  cp $(DESTDIR)/opt/microemulator-2.0.3/devices/microemu-device-resizable.jar $(DESTDIR)/home/user/.microemulator/
  cp config2.xml $(DESTDIR)/home/user/.microemulator/
  cp config2.xml $(DESTDIR)/home/user/.microemulator/
-
==microemulator.desktop==
+
</source>
-
[Desktop Entry]
+
 
-
Encoding=UTF-8
+
===microemulator.desktop===
-
Version=0.1
+
 
-
Type=Application
+
<pre>
-
Name=MicroEmulator
+
[Desktop Entry]
-
Exec=/opt/ejre1.6.0_10/bin/java -jar /opt/microemulator-2.0.3/microemulator.jar
+
Encoding=UTF-8
-
Icon=microemulator
+
Version=0.1
-
X-HildonDesk-ShowInToolbar=true
+
Type=Application
-
X-Osso-Type=application/x-executable
+
Name=MicroEmulator
 +
Exec=/opt/ejre1.6.0_10/bin/java -jar /opt/microemulator-2.0.3/microemulator.jar
 +
Icon=microemulator
 +
X-HildonDesk-ShowInToolbar=true
 +
X-Osso-Type=application/x-executable
 +
</pre>
==config2.xml==
==config2.xml==
-
<config>
+
 
-
<files>
+
<source lang="xml">
-
<recentJadDirectory>/home/user/MyDocs/</recentJadDirectory>
+
<config>
-
</files>
+
<files>
-
<system-properties>
+
<recentJadDirectory>/home/user/MyDocs/</recentJadDirectory>
-
<system-property VALUE="MIDP-2.0" NAME="microedition.profiles"/>
+
</files>
-
<system-property VALUE="CLDC-1.0" NAME="microedition.configuration"/>
+
<system-properties>
-
<system-property VALUE="true" NAME="avetana.forceNativeLibrary"/>
+
<system-property VALUE="MIDP-2.0" NAME="microedition.profiles"/>
-
</system-properties>
+
<system-property VALUE="CLDC-1.0" NAME="microedition.configuration"/>
-
<devices>
+
<system-property VALUE="true" NAME="avetana.forceNativeLibrary"/>
-
<device DEFAULT="true">
+
</system-properties>
-
<name>Resizable device</name>
+
<devices>
-
<filename>microemu-device-resizable.jar</filename>
+
<device DEFAULT="true">
-
<descriptor>org/microemu/device/resizable/device.xml</descriptor>
+
<name>Resizable device</name>
-
<rectangle>
+
<filename>microemu-device-resizable.jar</filename>
-
<x>0</x>
+
<descriptor>org/microemu/device/resizable/device.xml</descriptor>
-
<y>0</y>
+
<rectangle>
-
<width>800</width>
+
<x>0</x>
-
<height>378</height>
+
<y>0</y>
-
</rectangle>
+
<width>800</width>
-
</device>
+
<height>378</height>
-
</devices>
+
</rectangle>
-
<windows>
+
</device>
-
<main ONSTART="true">
+
</devices>
-
<x>0</x>
+
<windows>
-
<y>0</y>
+
<main ONSTART="true">
-
<width>800</width>
+
<x>0</x>
-
<height>480</height>
+
<y>0</y>
-
</main>
+
<width>800</width>
-
</windows>
+
<height>480</height>
-
</config>
+
</main>
-
==debian/javame.postinst==
+
</windows>
 +
</config>
 +
</source>
 +
 
 +
===debian/javame.postinst===
 +
 
: first run as root... to start timebomb (aka trial period)
: first run as root... to start timebomb (aka trial period)
-
#!/bin/sh
+
<source lang="bash">
-
/opt/ejre1.6.0_10/bin/java -version 2> /dev/null
+
#!/bin/sh
-
chown -R user:users /home/user/.microemulator/
+
/opt/ejre1.6.0_10/bin/java -version 2> /dev/null
-
exit 0
+
chown -R user:users /home/user/.microemulator/
 +
exit 0
 +
</source>
-
----
+
[[Category:Development]]
 +
[[Category:HowTo]]

Revision as of 12:57, 21 June 2010

Image:Ambox_notice.png
This article does not provide enough information, and needs to be expanded to more fully cover the topic.
Please see the talk page for discussion.

Contents

Jave SE and Java ME

Download and untar/unzip

  1. microemulator-2.0.3.zip from microemu
  2. ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-min-eval-30_jul_2009.tar.gz from Sun JaveSE ARMv6 Headful

Makefile

 clean:
 	echo cleaning...
 
 install:
 	cp -r ejre1.6.0_10 $(DESTDIR)/opt/
 	cp -r microemulator-2.0.3 $(DESTDIR)/opt/
 	cp microemulator.desktop $(DESTDIR)/usr/share/applications/hildon/
 	cp $(DESTDIR)/opt/microemulator-2.0.3/devices/microemu-device-resizable.jar $(DESTDIR)/home/user/.microemulator/
 	cp config2.xml $(DESTDIR)/home/user/.microemulator/

microemulator.desktop

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=MicroEmulator
Exec=/opt/ejre1.6.0_10/bin/java -jar /opt/microemulator-2.0.3/microemulator.jar
Icon=microemulator
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

config2.xml

<config>
	<files>
		<recentJadDirectory>/home/user/MyDocs/</recentJadDirectory>
	</files>
	<system-properties>
		<system-property VALUE="MIDP-2.0" NAME="microedition.profiles"/>
		<system-property VALUE="CLDC-1.0" NAME="microedition.configuration"/>
		<system-property VALUE="true" NAME="avetana.forceNativeLibrary"/>
	</system-properties>
	<devices>
		<device DEFAULT="true">
			<name>Resizable device</name>
			<filename>microemu-device-resizable.jar</filename>
			<descriptor>org/microemu/device/resizable/device.xml</descriptor>
			<rectangle>
				<x>0</x>
				<y>0</y>
				<width>800</width>
				<height>378</height>
			</rectangle>
		</device>
	</devices>
	<windows>
		<main ONSTART="true">
			<x>0</x>
			<y>0</y>
			<width>800</width>
			<height>480</height>
		</main>
	</windows>
</config>

debian/javame.postinst

first run as root... to start timebomb (aka trial period)
#!/bin/sh
/opt/ejre1.6.0_10/bin/java -version 2> /dev/null
chown -R user:users /home/user/.microemulator/
exit 0