JavaFX for Windows Mobile (EA)
Early access of JavaFX Mobile 1.2 for Windows CE OS is available. I have tried installing JavaFX applications on mobile before. Just thought of trying out the released binaries. The version is tested on HTC Diamond and LG Incite.
I tried to install on Sony Ericsson XPERIA. Given below is the set of steps to install JavaFX on Windows Mobile. I have taken the screenshots from desktop using – MyMobileR
Download and unzip JavaFX Mobile 1.2 for Windows Mobile. Connect mobile to desktop. Copy SUN_JAVAFX.CAB to storage card. Open storage card folder in “File Explorer”. |
Double click on SUN_JAVAFX entry. It will launch the installer. Click “Yes” and continue with installation. |
Choose the location to install. I selected “Storage”. Click on “Install” to continue. | Installing JavaFX.. |
Installation complete.. | Open “Programs”. It will have a new icon “JavaFX”. Double click on icon to start JavaFX. |
By default it shows a menu with pre-installed samples. Select and double click on “Calculator” sample. Its same as one available at http://javafx.com/samples/Calculator/ | Launching Calculator sample… |
Calculator launched | |
I also installed the animation sample. Just copy the *.jad and *.jar file to storage card. Double click on .jad file to install the application. Select the folder to install. Launch “JavaFX” from “Programs”. Now the menu will have entry for new application. Double click to launch application. It runs fine as shown below (video is taken directly from mobile screen).
|
|
Update:
Please refer to Terrence Barr’s Blog for screencast and deployment of Mosaic sample on mobile.
var dzone_style = ‘2’;
Coooool!!!
JavaFX!!! I Love JavaFX!
Thx for the tutorial!
@Raghu Nair Thanks!
@William Antônio Thanks! I could read your blogs (using Google Translate) Keep up the good work.. 🙂
But sadly, it doesn’t run JavaFX apps in fullscreen because the Windows Softkey bar is always present at the bottom.
@boybawang I’m not sure if there is anyway to do that, ‘ll try to find info on that..
It’s annoying I can’t run Java apps in fullscreen. The WM softkeybar at the buttom always stay present in the foreground. In fact it covers the bottom portion of some javaFX apps like "project manager" sample app that I downloaded from javaFX website.
Hi Rakesh
I tried to install the JavaFX runtime for pocket pc in an Axim x51v with Windows Mobile 6.1 classic using the instructions of the Installation Guide, but whenever I try to execute the javafx.exe file I get the following error:
"The file ‘JavaFX’ cannot be opened. either it is not signed with a trusted certificate, or one of its components cannot be found. If the problem persists, try reinstalling or restoring this file"
I already tried reinstalling and hard reseting my device but it simply doesnt work.
Can you help me with this?
@ee and BoyBawang I have forwarded your query to mobile team, I’ll get back to you.
Hi @all!
I have the same problem like "ee", it doesnt work on my ipaq114, win mobile 6.0 classic
What can I do to make it run?
@mov_ax Sorry, I could not find a workaround for this issue. General response I received was that the security of that mobile is not allowing to execute installer properly from "unknown publisher"
Hi Rakesh!
Mhhhh… this is bad, i have only this device.
Is there a possibility to make it a "known publisher" by importing a certificate or so?
Hello Sir,
I am new to JAVAFX. I am developing one application in that I have to open webpage in device. How could I do this. Please help.
Thanks.
Thank you very much! It’s very usefull information for me! I find how install my application on mobile device and I finded this here!
@Gostewitz Thanks! 🙂
Can we access windows mobile database using javaFX application?
JavaFX does not have any specific APIs for this. Can you connect to this database from java (CLDC+MIDP)? If yes, you can use the same approach for javafx.
Hi Rakesh…
Thanks for you reply. I am new to mobile applications. So I don’t have much idea on javaFX.
I think CLDC+MIDP comes under J2ME. Am I right?
My requirement is I need to store/access windows mobile database from a javaFX application. Can you help me?
Thanks again in advance.
@Madan Yes, its J2ME. I think it will be better to check with J2ME forums, since it uses those APIs and specific to J2ME. I’ll try to get some info from mobile team as well..
Hi Rakesh!
CLDC+MIDP and JavaFX is working. Thank you. I have one more question. Can we run a javaFX application in backgoround of windows mobile. I mean whenever a user starts a FX application, it should be running in background until the mobile user stops it from services or switch off the mobile.
@Madan Async API may be of help? http://java.sun.com/javafx/1.2/docs/api/javafx.async/javafx.async.JavaTaskBase.html Can you also share info about your device, just for my information..
Hi!
I am using windows mobile 6.0. From my FX application I am calling a midlet which maintains RMS(tables) to store the data. I am reading the same whenever I required.
Can you give me an example for Async API/ background service? (Background service means I will close the UI completely. I may open another application.)
@Madan You can start from here
http://blogs.sun.com/clarkeman/entry/javafx_async_task
Now I understand the requirement, I have tried background on desktop, I’m not sure how it behaves on mobile. Need to try it out…
Hi Rakesh,
I read the blog about javafx.async package, in your last comment. I have the similar requirement. Can you please provide a sample for mobile.And i have one more question: After starting the service on mobile, i have to come out of service application(but still it have to run until user closes it)and work with another javafx application.Is it possible?
@Siva I will provide a sample using async-apis. But there is difference between running in background (Eg: RSS/ATOM feed reader, HttpRequest handler etc) and as service. I haven’t tried running as service, need to check if that is feasible or not on Mobile..
@Madan, Siva I have written a sample using async APIs. Its working as expected on desktop and emulator, but fails on Sony-Ericsson-X1. So need to check for other requirements (if any) to execute on mobile.
Sample Code:
http://code.google.com/p/javafxdemos/source/browse/#hg/JavaFXAsync/src/javafxasync
Hi Rakesh,
Thank you for providing code. I will check it once.