I recently came across javafx and i have some doubts regarding it
2)Or is javafx a server side .
JavaFX code is compiled to Java bytecode, then packaged into a jar file (on a dev computer, then transfered to the server). The jar file is then sent by the server to the browser.
It is executed on the client side, by the local JVM and automatically downloaded JavaFX runtime.
Sorry if this is a stupid question, but can someone please explain to me in a bit more details what JavaFX really is.
For example, if one'd ask me what Java is I'd say it's a platform that consists of several key components:
- specification of java virtual machine and java bytecode run by this VM + platform specific implementations of VM.
- specification for java language + platform specific implementations of Java compilers, that make a bytecode out of sources.
- java class library classes - standard mostly "pure-java" classes (+ some JNI calls) that ship with JVM and provide basis for developers to build on.
Something like this.
If this is too blurry, I can ask some specific questions about JavaFX - is it purely platform independent or there are platform-specific implementations? What it consists of: pure java classes or something else too?
If platform-specific, which platforms are supported and why?
"One thing that people noticed right away is the fact that the JavaFX Preview SDK is available for Windows and Intel/Mac, but not Linux or Solaris. A cursory examination of the Windows and Mac OS X version of the JavaFX Preview SDK reveals that they are almost identical in content. The only differences are in native libraries and startup scripts/executables. The native libraries fall into the area of native audio/video playback and (for Windows) some 3D effects."
Joined: Oct 23, 2009
First advice: when looking information on JavaFX, discard anything posted before December 2008 (see your link: 2008/08/05/watch_javafx_sdk_run_on_linux.html). The pre-release version and the 1.0 version are very different.
Today, JavaFX is available on both Linux and Solaris (IIRC).
And yes, there is quite some platform-specific code, to accelerate graphics (GPU-bound), via system API (eg. using Direct3D on Windows). That's why most JavaFX effects (blur, shadows...) are not available on the mobile platform (no GPU).
Joined: Feb 05, 2010
I see. Thanks for your answer, will concentrate on only 2009 and later docs.