Skip to main content

Java FX on USB drive

3 replies [Last post]
sunil2rao
Offline
Joined: 2005-02-16
Points: 0

Hi all,
I am trying to build a cross platform (vista, xp, mac
computers for now) and mobile phone in the future. The
application needs to run from a usb flash drive.

Is this something I can do with JavaFX? Currently I am
thinking of a Swing application with an embedded jre (in the
flash drive).

Any thoughts? suggestions?

Thanks
sunil2rao

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
joshy
Offline
Joined: 2003-07-02
Points: 0

JavaFX is designed to be run from the web as either an applet or through Java WebStart. Offline installation and locally hosting the runtime is not currently supported.

willismorse
Offline
Joined: 2004-01-30
Points: 0

Hi Josh -

Am I right in my reading of the license? I'd take the time to figure out how to embed JavaFX if I knew I was allowed to do it. The more I look at JavaFX, the more I want to use it in our apps.

Willis Morse

willismorse
Offline
Joined: 2004-01-30
Points: 0

I'm in a similar situation. I haven't actually tried to solve this problem, but from my reading so far I think the answer is no (at least, not easily)

JavaFX is designed to deployed via Webstart, and it will be installed into your computer's local jre. Even if you could redirect the Webstart installation into your custom jre folder, it will still require an internet connection to get JavaFX in the first place.

While it should in theory be possible to collect all the JavaFX jars and dll/so files into your app's jar, I think you would have to also reverse engineer the required classpaths
as well as copy the dll/so files out of your jar into some location in the file system (so the OS can load them) and then set your app's library path to this location. As I read the JavaFX license, however, it seems to prohibit you from distributing these files. So this is all probably moot.

Plus, calling JavaFX code from your Swing app is not supported, although there are some hacks floating around to approximate this.

So JavaFX is backburned for me until these issues are solved. It's a shame because I would really like to use it in our Swing apps. And I'd love to be proved wrong on any of the above issues.

Willis Morse