Slashdot Mirror


Sun Releases JavaFX

ink writes "Sun released JavaFX 1.0 today, in a bid to take on Adobe's Flash and Microsoft's Silverlight technologies. It is Sun's first Java release to include standardized, cross-platform audio and video playback code (in the form of On2 licensed codecs). The lack of a Linux or Solaris release is a notable absence. The development kit currently consists of the base run-time, a NetBeans/Eclipse plug-in and a set of artifact exporters for Adobe CS 3&4." An anonymous reader adds a link to several tutorials accompanying the new release.

39 of 185 comments (clear)

  1. Probably Also Contending with OpenLaszlo by eldavojohn · · Score: 4, Informative

    ... in a bid to take on Adobe's Flash and Microsoft's Silverlight technologies

    Well, I will throw out there a heads up to folks about OpenLaszlo which is the "run-anywhere, no-lock-in rich Internet platform. Period."

    Unfortunately it still has a massive adoption curve ahead of it so maybe there's no reason to list it as a contender. While there are neat demos, a few companies have employed it: Wal-Mart, Pandora even MSN's music service.

    *sigh* I wonder if this means Sun is going to pull out of Orbit and come up with some J2ME version of JavaFX?

    Like always, I welcome the competition, diversity and options this brings while I cringe at the thought of yet another schism in the open source community.

    --
    My work here is dung.
    1. Re:Probably Also Contending with OpenLaszlo by ink · · Score: 3, Informative

      Well, I will throw out there a heads up to folks about OpenLaszlo which is the "run-anywhere, no-lock-in rich Internet platform. Period."

      That's not entirely true. OpenLaszlo relies on Flash to display video, and Flash is not a no-lock-in platform. You cannot redistribute Flash, or use it in a whole host of applications without licensing it from Adobe.

      --
      The wheel is turning, but the hamster is dead.
    2. Re:Probably Also Contending with OpenLaszlo by civilizedINTENSITY · · Score: 4, Informative

      OpenLaszlo compiles to either flash or DHTML. Its not a Flash lock-in.

    3. Re:Probably Also Contending with OpenLaszlo by Bacon+Bits · · Score: 3, Informative

      You cannot redistribute Flash, or use it in a whole host of applications without licensing it from Adobe.

      Huh? You can't redistribute any application without a license unless it's public domain. That's copyright. GPL is a distribution license.

      As far as Adobe's Flash, they have an easy website form to obtain a standard redistribution license:
      http://www.adobe.com/products/players/fpsh_distribution1.html

      It's suitable for distributing the player on installation media, for distributing the player on a whole network, or for distributing with other software through a website you manage. It pretty much covers the bases for intended uses of Flash Player for an end-user.

      --
      The road to tyranny has always been paved with claims of necessity.
    4. Re:Probably Also Contending with OpenLaszlo by Air-conditioned+cowh · · Score: 4, Insightful

      OpenLaszlo compiles to either flash or DHTML. Its not a Flash lock-in.

      I'd be surprised if it were possible to display streaming video in just DHTML.

    5. Re:Probably Also Contending with OpenLaszlo by genik76 · · Score: 2, Funny

      That would be one hell of a JavaScript program.

    6. Re:Probably Also Contending with OpenLaszlo by fredrik70 · · Score: 5, Funny

      well, with html 5 we all will have the video tag so there's a solution in sight - hopefully!

      --
      if (!signature) { throw std::runtime_error("No sig!"); }
    7. Re:Probably Also Contending with OpenLaszlo by master_p · · Score: 2, Insightful

      Can DHTML display video? the GP poster talked about video specifically.

  2. SO confusing.. by TheDarkener · · Score: 5, Interesting

    No shockwave for Linux, Flash 64 gets released JUST for Linux, Sun open-sources Java, but now no JavaFX for Linux...

    Can't we all just get along? My head is spinning at all the end-user requests for their intarwebs to work correctly. I guess it's just too much to ask for a real, open standard that just works (like...umm...html?)

    --
    It is pitch black. You are likely to be eaten by a grue.
    1. Re:SO confusing.. by Anonymous Coward · · Score: 2, Informative

      Wow...you can't even be bothered to type "Linux dmg" into Google...how lazy are you?

      (In case you really are that lazy, the answer is mount -t hfs -o loop file.dmg /path/to/mount)

  3. Re:sorry by AKAImBatman · · Score: 4, Informative

    My main problem is..."include standardized, cross-platform audio and video playback code (in the form of On2 licensed codecs)"

    On2 is the company that provides the video/audio codecs for video in the Flash plugin. (i.e. The technology used by sites like Youtube.) The inclusion of these codecs in JavaFX means that JavaFX will be able to play movies intended for a Flash player.

    And..."The development kit currently consists of the base run-time, a NetBeans/Eclipse plug-in and a set of artifact exporters for Adobe CS 3&4."

    In other words, JavaFX is a scripting language for graphics. Similar in principle to Flash. The download gives developers the necessary libraries and viewers to develop JavaFX code. (Including plugins for your favorite IDE.) Not sure what the Adobe CS stuff is about.

  4. Re:Existing plugin by AKAImBatman · · Score: 4, Informative

    Why is this not running on top of the existing java plugin.

    It is. This is really a set of libraries on top of the existing Java runtime that support the JavaFX scripting framework.

    Or at least add the functionality to the next release of java.

    I'm sure they will once the technology has been shaken out a bit. Sun tends to be cautious about making changes to the core APIs.

  5. JavaFX on Android by vivin · · Score: 4, Insightful

    What I'd really like to see is JavaFX running on Android. I saw a presentation from Java One where it showed a JavaFX app running on Android. Has anyone been able to duplicate this:

    http://www.youtube.com/watch?v=OYy4j9x2Mi4

    I've played around with JavaFX and it seems pretty nice. I've been able to write small widgets with it. Whether it can take on Silverlight and Flash still remains to be seem. What's awesome is that JavaFX has the support of Java's rich API and 3rd-party libraries (you can easily import them into a JavaFX program).

    Also if JavaFX apps can run properly on Android or the iPhone, I think that would also help it be more successful.

    --
    Vivin Suresh Paliath
    http://vivin.net

    I like
  6. Just what the web needs by mtarnovan · · Score: 4, Interesting

    ... another RIA platform. Only this one doesn't have a userbase yet and I don't think it'll have one to speak of in the near future; it is Windows and Mac OS only (though Sun promises that Linux and Solaris support is underway http://blogs.sun.com/javafx/entry/a_word_on_linux_and). Microsoft has been pushing Silverlight hard and still has only about 30% market penetration in the US (they claim 50% mp in 'some countries' - I'm very curious which countries are these: http://www.microsoft.com/presspass/press/2008/oct08/10-13Silverlight2PR.mspx). With Flash+Flex having a comfortable user base of some 90+%, let's not even begin to compare Microsoft's vs Sun's power to push stuff to the desktops of the masses, it's not even funny.

  7. Linux support is 'coming' by Anonymous Coward · · Score: 4, Informative

    From the link:

    "We are going to support Linux and Solaris. We love both operating systems....we are actively working on it right now. We have it in our continuous build system."

    and

    "So why didn't we ship for Linux and Solaris in 1.0 along with Mac & Windows?

    Simple. It's not ready yet. Certain features are there but other features are broken or not performing well enough. In particular video and graphics hardware acceleration have historically been tricky to implement properly on Linux and Solaris, as users of native apps for those operating systems know all too well. But we are working on it and will ship it."

    1. Re:Linux support is 'coming' by jasonmanley · · Score: 2, Insightful

      I think that it comes down to a business decision. Creating brand awareness, gaining market penetration etc. In these markets it seems that "days count". Get the "acronym", or prduct name or whatever out there - create a buzz - get some interest and momentum behind the idea and add features as you go. I for one applaud Sun's open source efforts and don't hold this against them. They are inventing / tweaking a very difficult business model by releasing free software and getting support / client / business / developer buy in. It is not easy and they have had to take a few hits while sorting it out. So I understand and considering everything that we are getting for free from them (and top quality I might add) I will allow them this decision.

      --
      http://projectleader.wordpress.com
    2. Re:Linux support is 'coming' by A12m0v · · Score: 5, Insightful

      Linux and Solaris count towards less than 5% of the market. Sun did the smart thing by bringing it to the mass OS market, instead of delaying it. If they delayed it, they'd have lost their window of entry, and maybe lost the market entirely to Adobe AIR.

      --
      GENERATION 25: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
    3. Re:Linux support is 'coming' by hotfireball · · Score: 2, Insightful

      Linux and Solaris count towards less than 5% of the market.

      Right. A *desktop* market. Actually much less than 5%. It is about less than 3% for both.

  8. Only no JavaFX for developers by Lobais · · Score: 3, Interesting

    Even though it is still a shame,
    you CAN view JavaFX used on webpages. It seams to work just like java-applets, only nicer to look at. (Sadly it also has the same slow loading as applets)

    Example: http://javafx.com/samples/StopWatch/index.html

  9. It does work on linux by Anonymous Coward · · Score: 5, Interesting

    what is this linux support all you frothing nerds are screaming about? I just ran the "web start" examples in linux just fine, in fact FX runs on the standard JRE. Ok, there's no sdk for linux yet, FINE, just cut them some slack, for christ sake.

  10. Come back forwards on that reversal again...? by Odin's+Raven · · Score: 5, Funny

    The lack of a Linux or Solaris release is a notable absence.

    So if we have an absence of a lack, does that mean there is a Linux and/or Solaris release? :-P

    And yes, I don't think I'm not being overly pedantic in noting the presence of an absence of a lack of internal bouyancy in the summary, since that's a term whose inapplicability wouldn't be not out of place in this sentence.

    --
    A marriage is always made up of two people who are prepared to swear that only the other one snores.
  11. Flash and Silverlight the target? by chrb · · Score: 2, Insightful

    Flash and Silverlight? Yeah, right. Sun knows that Yet Another Web Development Framework isn't going to take over the desktop. This is a blatant attempt to stop Android taking over the mobile phone space. Android added native media playback classes and a bunch of other stuff to the J2ME mix, the HTC G1 was a surprise hit, and a whole bunch of cell phone manufacturers have now announced Android phones - not J2ME phones. Sun is seeing its lock on the mobile phone application market disappearing overnight, and Google side-stepped whatever patent claims it might have exerted by running "Dalvik" byte-code instead of Java byte-code.

    "We're making our binaries available" to mobile-phone makers "so we can unify the Java platform implementations," said Schwartz, who expects rapid adoption. "We're starting with a couple billion handsets in the marketplace and swimming downstream."

    The business case
    Sun also will charge those handset makers a per-unit royalty for JavaFX

    So, it's closed source, and phone manufacturers have to pay a royalty to Sun for every handset shipped? In the meantime, Android is getting the press, HTC has shipped half a million G1 handsets in the past couple of months, Android is open source and free to implement, and there are numerous Android phones from multiple manufacturers on the horizon. Why would any of these manufacturers choose JavaFX instead?

    1. Re:Flash and Silverlight the target? by squiggleslash · · Score: 4, Informative

      Android - Mobile phone stack, making heavy use of Java technology. While Sun's not directly involved, Jonathan Schwartz has spoken highly of it.

      JavaFX - Web multimedia/interactivity stack, similar to Flash and Silverlight.

      The two are not competitors. Sun is not pushing JavaFX to compete with Android any more than Microsoft is pushing Silverlight to destroy Windows CE.

      --
      You are not alone. This is not normal. None of this is normal.
    2. Re:Flash and Silverlight the target? by bjourne · · Score: 4, Informative

      Sorry, you are misinformed. The Andorid platform was announced 20071105. JavaFX framework was announced at Java One in May 2007 six months earlier. Calling JavaFX a response to Android is plain incorrect and an apples to oranges comparison to boot.

    3. Re:Flash and Silverlight the target? by chrb · · Score: 2, Interesting

      Why is it so difficult to understand that Google's Dalvik - an implementation of Java being used for free by mobile phone manufacturers - is a direct threat to Sun's J2ME? This is not some secret conspiracy theory - professional business analysts, who actually make a living from watching these kinds of things, have noticed the same thing.

      "However, Google's move threatens Sun's business strategy, Mazzocchi said. He believes that Sun sees a bright future in the mobile market and hopes to earn revenue off the use of the Java virtual machine by phone makers. Google's plan diminishes that opportunity for Sun." source

      "But with this you'll need to develop a separate application that's not standard. Unless Android becomes main stream and kills J2ME ..." source

      This blog post from over a year ago proposes that JavaFX Mobile is just the next stage for J2ME to compete with Android.

  12. JavaFX 1.0 SDK running on Linux by vivin · · Score: 5, Informative

    I was able to get the SDK to run on Linux. Full details here. Please don't kill my box :)

    --
    Vivin Suresh Paliath
    http://vivin.net

    I like
  13. Holy Halleluja! Unbelievable! by Qbertino · · Score: 5, Insightful

    They've done it! They have *finally* done it. Beyond all hype, potential vaporware and marketing bullcrap they have - for once - actually pulled through with RIAs. People this is the first time in history that Sun has actually pulled through with implementing a piece of Java in a form that Java was initially meant for: A cross plattform rich & powerfull client enviroment. Finally Java and its VM have stepped up and entered the ring with Flash!

    Only intially releasing for OS X and Windows is a large downside, as it will get negative votes from opinion leaders in the field, but the simple fact that they pulled through and didn't stop at 20% with some half-assed crappy Java Media Framework or some other piece of sh*t they've released ever since Flash took the helm at rich clients 10 years ago is a very big supprising plus!!! And the release-website (why the f*ck isn't this, the most important prime sorce even linked in the GP metaarticle???) doesn't even look like total crap.

    If they actually manage to pull through with a broad parallel release policy for this in the near future, manage to reduce JFX deployment to zero-fuss Flash-style and release the java-based FOSS tools and IDEs for JFX as announced a year ago, we will - for the first time in the history of the web - see a true competitor to Flash rise. This is good news in so many ways I can't even describe. If Sun plays its cards right and continues applying common sense and not screwing around this time and Adobe isn't on its toes, we will have a fully free open source rich client platform in just a few years and Flash will be history. Yay! Go, Sun, go!

    I can't tell you how much I and many other professional Flash developers have waited for this moment for the last 8 years.

    --
    We suffer more in our imagination than in reality. - Seneca
    1. Re:Holy Halleluja! Unbelievable! by srijon · · Score: 2, Insightful

      Yeah! Java finally made it in the form is was meant to be. We love you Sun.

      Oh. Wait a moment. override? bind? def? public-init? WTF.

  14. JavaFX.com is down... by thistle · · Score: 2, Informative

    ...and has been for at least 20-30 minutes. I guess they didn't expect anyone to actually check out the site.

  15. Not really, no. by Qbertino · · Score: 3, Informative

    Laszlo is a Generator for a few things - which also include Flash, nonetheless. Much like the old Macromedia Flash Generator, the Ming Libraries or the Macromedia Laszlo Rippoff 'Flex'.

    JavaFX on the other hand is an all-out leveraging of the Java VM for RIAs, something Laszlo can't offer. It's its own VM (naturally) plus a toolkit for building content and applications. While there are overlaps between the two, JavaFX is clearly aimed at Flash - the biggest advancement being a much more streamlines deployment of the Java VM (I just installed it with a sinlge click of a mouse, supported by some nifty Ajax widget that streamlined the process even more).

    And, contrary to Silverlight, Java actually has a chance to dethrone Flash, as it is the most mature cross plattform available, despite Flash being the most widespread plattform in general. I'm really interested in how this will play out. ... And am downloading the free JavaFX IDE as I'm typing this. If it doesn't get in my way building RIAs, I will probably never purchase a Flash IDE licence again.

    --
    We suffer more in our imagination than in reality. - Seneca
    1. Re:Not really, no. by shutdown+-p+now · · Score: 2, Informative

      The big problem with JavaFX is that, apparently, it requires a full Java VM on the client to work. This is about 15Mb to download. For comparison, Silverlight 2.0 is ~4Mb, and Flash is less than 1Mb. And yes, it is a big deal. Today, for anything other than Flash, you have to assume that the client won't have the plugin/runtime installed by default, so the download has to be as small as possible.

    2. Re:Not really, no. by ChunderDownunder · · Score: 4, Informative

      The download for Java *is* as small as possible. If you go to Sun's download page and select the "Windows Kernel Installation", the installer is 0.20 MB

      It then dynamically downloads components from the network as required.

      More information about this here.

      Don't ask me why (I guess it's an experimental feature they're prepping for the Java 7 release) but for the time being you have to access it via Sun's developer site rather than the consumer java.com one. Hmmm.

    3. Re:Not really, no. by synthesizerpatel · · Score: 2, Interesting

      eh. I leave the site when Silverlight comes up. When Flash came out originally people were all grumpy about it not being HTML compliant.. Now it's the standard? How times change.

      And from a technology perspective, Flash isn't better simply because it's more pervasive -- it's just more pervasive. It's advantagous to use it, but not better.

      I don't think the strategy here is that Sun expects all the flash developers to download NetBeans and start writing Java -- Sun's got a lot of people programming Java already, this just collateralizes on their existing skillsets and allows them to compete in a market that wasn't as viable for them without this feature.

      I think Processing nailed the concept better though.

  16. Re:Existing plugin by Anonymous Coward · · Score: 2, Interesting

    The key bits are the scenegraph code ("scenario", available, but currently only as GPL) and the media playback (Java Media Components?) JMC replacing the hideous JMF. The JMC are based on GSTreamer on Linux (and solaris? not sure) so there is the possibility of playing anything ffmpeg does. God knows how the licensing is going to work out, especially since the H264 library is GPL.

  17. Sun are so...enterprise by TheModelEskimo · · Score: 2, Interesting
    Seriously, look at the "Start" page on the JavaFX website. It gives you a choice of *three* radio buttons, and confusingly presents three different JavaFX-related packages. Nowhere does it say, "download all of these and get started," or even "which one do I want? Click our little expanding

    button to find out."

    Combine that with the 2nd-tier graphic design and interactivity going on all over the place, and it feels sort of like something that a) isn't going to win over the designer crowd and b) WHY on earth would Linux fans look at this as anything other than a snub? Sigh. (Anyway, I've downloaded all three packages, and I'll give it a go...)

  18. Fail! by AdamInParadise · · Score: 2, Informative

    I tried the demo over at javafx.com and I got two security warnings (they use self-signed certificates) and one popup with a EULA. And the demo have some serious usability and display issues.

    I love Java and it pays my bills but Sun really have a long way to go to reach the acceptance level of Flash.

    --
    Nobox: Only simple products.
  19. Talk about delusions of grandeur by DaveV1.0 · · Score: 2, Insightful

    Not supporting linux and solaris, which have less than 5% of the desktop market, is not notable and is, in fact, good business sense.

    --
    There is no "-1 offended" or "-1 you don't agree with me" mod options for a reason.
  20. Re:Your take? by AKAImBatman · · Score: 2, Interesting

    what's your take on JavaFX?

    I have sort of a 'meh' reaction to it. It's not that the technology isn't cool, but it's a solution looking for a problem. Much like Silverlight, but without the antitrust practices to force it into use. In particular, its intended use as a platform on top of applets bothers me. Applets died out for a lot of good reasons. There's no good argument to be made for their revival. Especially with Flash and/or DHTML providing nearly all the advantages of Applets. Just let sleeping dogs lie and focus on using the technology elsewhere.

    There is a possibility that JavaFX could be useful on cell phones. However, I don't see it happening. Sun is good at creating abstract technologies that provide options to the market. They're not so good at creating firm solutions that can hold their own in a competitive environment. The competition may be technologically inferior, but at least their end to end solution is practical.

    Which is what I'm seeing with cell phones. Android may be only pseudo-Java based, but it provides the necessary phone technology top to bottom. The amount of customization necessary is pretty minimal. Meanwhile, Sun is pushing this JavaFX technology which is only a small piece of the puzzle. (Arguably the least important piece!) Handset manufacturers would have to adapt their phone software to meet the technology rather than having a pre-rolled solution available. Thus there's not much incentive to ship JavaFX.

    In effect, JavaFX is DOA. You can throw it on the pile with PalmOS Cobalt, Shockwave, VRML, and other interesting technologies that failed to properly position themselves in the marketplace.

    FWIW, I'm flattered you consider my opinion important enough to ask. :-)

  21. Alpha quality by metamatic · · Score: 2, Interesting

    1. It needs to be an order of magnitude faster to load. I don't have to wait 20 seconds for Flash movies to start playing.

    2. It needs to not require a new runtime, with two nuisance security/license agreement dialogs.

    3. It needs to not crash Firefox.

    --
    GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak