This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java VM under Windows CE 6/7 on Wondermedia netbook

 
Wolfgang Tintemann
Ranch Hand
Posts: 65
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Maneesh Godbole
Saloon Keeper
Posts: 11196
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Wolfgang Tintemann
Ranch Hand
Posts: 65
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11196
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We used CrEme.
 
Wolfgang Tintemann
Ranch Hand
Posts: 65
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic