Skip to main content

MicroEmulator

7 replies [Last post]
darolla
Offline
Joined: 2008-07-18
Points: 0

Hi,

do you know the MicroEmulator http://www.microemu.org/ ?

It's quite easy to deploy a j2me jar and run it inside a webpage.

All you need is microemu-javase-applet.jar and your jar, and the following html lines:

MicroEmulator - TagsMe

This is an example of the TagsMe project.

You can try it here: http://home.versanet.de/~marco204/TagsMe.html

Now I tried it with the LWUITDemo.jar

This is my html:

MicroEmulator - LWUIT

You can try it on http://home.versanet.de/~marco204/LWUIT.html

BUT IT DOESNT WORK :((((

I tried it with my own little project, and it didnt work at all.

Who knows why?

Greetings,
Marco

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
darolla
Offline
Joined: 2008-07-18
Points: 0

...

sorry for double post

Shai Almog

Hi,
This is an issue with your usage of the micro emulator please consult
its readme for further details.

Since MIDP/CLDC permissions and Applet security model are very
different things such as System.getProperty() will work in Java ME
but not in an Applet environment (LWUIT uses System.getProperty). To
workaround such limitations the tool ships with a tool that will
converts compiled MIDlets to API's that will behave as you expect,
but you need to "Export to web" in order to get this to work properly.
Just run the JAR microemulator.jar and open your jad file, after
running the MIDlet choose File->Save For Web which will generate the
proper JAR files and HTML file.



> I tried to qualify the .JARs with the path http://home.versanet.de/
> ~marco204/ but it doesnt work neither...
> [Message sent by forum member 'darolla' (darolla)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289638
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]
[Picture 93.png]

darolla
Offline
Joined: 2008-07-18
Points: 0

thank u.

now its running on: http://home.versanet.de/~marco204/LWUITDemo.html

greetings,
marco

darolla
Offline
Joined: 2008-07-18
Points: 0

The original TagsMe can be found here:

http://www.tagsme.com/index.php?option=com_content&task=view&id=10&Itemi...

Wouldnt it be nice to have the LWUIT Demo on the web inside an emulator? ;)

Greetings,
Marco

darolla
Offline
Joined: 2008-07-18
Points: 0

On the TagsMe website the html source is this:

width="226" height="471"
archive="http://www.tagsme.net/tagsme_demos/3457734/microemu-javase-applet.jar,http://www.tagsme.net/tagsme_demos/3457734/TagsME.jar">

Greetings,
Marco

PS: I dont understand why lwuit isn working....

darolla
Offline
Joined: 2008-07-18
Points: 0

I tried to qualify the .JARs with the path http://home.versanet.de/~marco204/ but it doesnt work neither...

chen

Hi,
The browser Java console throws an exception:

Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission microedition.platform read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at com.sun.lwuit.Implementation.(Implementation.java:325)
at com.sun.lwuit.Display.(Display.java:100)
at com.sun.lwuit.Display.(Display.java:88)

It seems like the exception was thrown from this line:
System.getProperty("microedition.platform");
don't know why this happen myself, but it's worth asking them how to
bypass this exception.

Regards,
Chen

lwuit-users@mobileandembedded.org wrote:
> I tried to qualify the .JARs with the path http://home.versanet.de/~marco204/ but it doesnt work neither...
> [Message sent by forum member 'darolla' (darolla)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289638
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net