This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Java VM under Windows CE 6/7 on Wondermedia netbook Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Java VM under Windows CE 6/7 on Wondermedia netbook" Watch "Java VM under Windows CE 6/7 on Wondermedia netbook" New topic
Author

Java VM under Windows CE 6/7 on Wondermedia netbook

Wolfgang Tintemann
Ranch Hand

Joined: Sep 11, 2010
Posts: 65

I made some tests with JVMs on my Wondermedia netbook(s)
with Windows CE 6 ( and Embedded Compact 7 ) running on ARM.

I used Personal Java, CrEme 4.12, Jeode ( and the Mysaifu which has a
fine GUI but has a problem with a dll on my machine - sad )

I would like to run at least apps written in the JDK 1.3 level of Java.

CrEme 4.12 works quite well but I need the Graphics2D class running :
but I get this kind of error message on a simple test program with a
cast from Graphics to Graphics2D

java.lang.ClassCastException: sun.awt.gfW.GraphicsImpl
at Graphics2D01GUI.paint()

Is there a way to get past this or set perhaps some Properties to other
values ? Here is a list :

java.runtime.name=Java(TM) 2, Micro Edition
java.library.builtin.net=true
java.library.builtin.pswsgs=true
sun.boot.library.path=/Windows/CrEme/bin
java.vm.version=CrE-ME V4.12.32 B197.111111
java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
sun.awt.touchable.squareButtons=true
sun.awt.im.InputMethod=
sun.awt.touchable.doNotDrawFocusRectangle=sun.awt.TabFocusManager
java.vm.vendor=NSIcom
java.vendor.url=www.nsicom.com
path.separator=;
java.vm.name=CrE-ME
file.encoding.pkg=sun.io
sun.graphicssystem.width=800
java.vm.specification.name=J2ME CDC
user.dir=/
JSCP.license=Evaluation
java.runtime.version=1.0
os.arch=ARM
sun.awt.touchable.sound=false
java.io.tmpdir=/temp
line.separator=

sun.awt.touchable.scale=45
os.name=Windows CE
JSCP.jDbg1=1
JSCP.jDbg0=0
java.security.manager=default
java.library.builtin.zip=true
JSCP.serverIP=
java.class.version=45.3
TrueView.native.smoothing=true
sun.awt.aw.palette=Gray/Blue
os.version=7.0
TrueView.native.narrowing=true
sun.awt.aw.DefaultCursor=sun.awt.touchable.FingerPrint
user.home=/
user.timezone=ECT
sun.awt.gfW.pixelType=color:16
java.security.policy=/1-sol/lib/grant.txt
file.encoding=8859_1
java.class.path=/My Documents/JAVA;/Flash Disk/CrEme/lib/vmclasses.zip;
user.name=pJSCP
sun.awt.im.NoVirtualKeyboard=true
java.vm.specification.version=1.0
java.home=/Windows/CrEme
user.language=en
java.library.builtin.jpeg=true
java.version=1.3.1
sun.boot.class.path=
java.library.builtin.math=true
java.vendor=NSIcom
sun.graphicssystem.height=432
file.separator=/
JSCP.hostIP=127.0.0.1
sun.graphicssystem=sun.awt.gfW.GraphicsSystem
user.region=US
buildlocale=ALL
sun.awt.otk.noRandomSelectionMode=true
JSCP.loaderPort=7777


Are there other even more powerful JVMs available on Windows CE ?
On the Oracle site under Java ME I only find Linux OS supported...


Time isn't Money, Money is Time.
The man who works looses his time ( spanish proverb )
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

Looks like the platform does not support Graphics2D

In the past, I have successfully used, LWUIT on a bar code scanner, which ran Win CE (if I am not mistaken, it was years back)
Maybe you might want to evaluate it for your requirement?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Wolfgang Tintemann
Ranch Hand

Joined: Sep 11, 2010
Posts: 65

Thank you,
had a look at the LWUIT API ( espacially the Graphics class )
and I think that would fulfill my request.

But now I have to begin some studies as I dont understand
what to do that I can develop an app for Windows CE.
Also the Oracle sites are not very clear to me at a first look...

What kind of JVM did you use when you worked with LWUIT ?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

We used CrEme.
Wolfgang Tintemann
Ranch Hand

Joined: Sep 11, 2010
Posts: 65

I meanwhile made my first attempts with the Netbeans IDE to get
a running cdc application under the CrEme emulator using LWUIT.

But now I fail with a simple HelloWorld example.

Here is roughly my code ( most important parts ) :


If I omit the code behind m.setVisible(true) a JFrame shows up as expected.
I already tried Display.init(m) to no avail.
Also putting the LWUIT code in the constructor doesnt help - no JFrame shows up
any more.

Does it not work this way ?
 
GeeCON Prague 2014
 
subject: Java VM under Windows CE 6/7 on Wondermedia netbook