Saturday, November 28, 2009

Chrome OS and Java

I made some time ago small research about Java in Chrome OS, today I continued. Last time I played with VMPlayer, now I'm running Chrome OS [for true it is Chromium OS] on my Asus EEE PC 900.

First thing is, it looks that in Chrome OS we have 2 versions of Java!
First is OpenJDK 1.6, and you may find it in directory /usr/lib/jvm/java-6-openjdk, java -version shows here OpenJDK Runtime Environment (IcedTea6 1.5) (6b16~pre5-0ubuntu2) OpenJDK Client VM (build 14.0-b16, mixed mode).
Second is GCJ 4.4, which you may find at /usr/lib/jvm/java-1.5.0-gcj-4.4, and displays this version info java version "1.5.0" jij (GNU libgcj) version 4.4.1.

It looks that in this OpenJDK Java you will not be able to run any program using Swing or AWT, any try of this will end with message:


Which says in short that Java cannot find some native library.

In GCJ Swing is working :-)



But how you can notice program is displayed in full screen mode.

I was also able to run my Java program which animate face with Gouraud shading [this link will lead you to my blog in Polish, where you may find applet which is doing the same]:



But this is REALLY slow. What you can see on movie.



That's all what we know.
We don't know if Java will be part of Chrome OS, or if it is here only by luck.
My hope is that Java will be important part of Chrome OS.


Similar postsbeta
Gouraud Shading in JavaScript :-)
OpenOffice.org2GoogleDocs and Apple - first try ;-)
Which language is fastest? ;-)
Programmers love to over complicate...
How to detect clickbaits?

1 comment:

  1. This answers a lot of questions for me. It looks like, yes, Chrome OS does have a JVM (well, two), and Swing and AWT is provided, albeit in a fullscreen form. Thanks a lot!

    ReplyDelete