Oracle Open Sourcing JavaFX, Including iOS and Android Ports 105
hypnosec writes "Oracle is going to open source JavaFX ports for Android and iOS soon as a part of its efforts to open source the framework. JavaFX, destined to replace Swing GUI library as the default method to develop graphical user interfaces, is a framework used to develop cross-platform rich Internet applications. The ports for iOS and Android are based on an 'unreleased version of JavaSE Embedded for iOS/Android.' Oracle's Richard Bair revealed that the 'first bits and pieces' for JavaFX for iOS should probably be out sometime next week. The rest of the release will be scheduled along with the release of Prism (the next-generation toolkit). Oracle is going to keep javafx-font proprietary, but Bair has said developers are already working toward an open source native replacement of the component through the OpenJFX list."
and i care (Score:1, Redundant)
why?
Re: (Score:3, Interesting)
Um, maybe because now there's a open source alternative to Flash for interactive Web applications? Yeah, Javascript.
But why not have more options? Use as desired.
I'm as disappointed in the Java security situation as anybody else, but the Slashdot knee-jerk anti-Java reaction is kind of dumb.
Re: (Score:2)
Interesting -- so is there a compatible Open Source JVM that can run this?
I'm aware of Open JDK, but seeing that the code is targeted for Linux, I don't see that as a truly open solution for most users.
So how would this be more open that Flash? While the Flash Player (AVM) is closed source, the entire AS3 library is open source.
And seeing that the security situation has no fix in the foreseeable future -- why is this something that anyone should consider using?
Re: (Score:2)
I know that everyone's hatred of Flash often gets in the way of facts and reality, but everything regarding Flash -- the SWF format, the AVM2 bytecode, the communication protocols -- has been open-sourced [adobe.com] except for Adobe's Flash IDE.
Re: (Score:2)
I know that everyone's hatred of Flash often gets in the way of facts and reality, but everything regarding Flash -- the SWF format, the AVM2 bytecode, the communication protocols -- has been open-sourced except for Adobe's Flash IDE.
Why, then, hasn't there been a strong open-source alternative to Adobe's Flash Player? I know that there is a GNU project [gnu.org] already out there to run Flash, but by most accounts it sucks in terms of compatibility and performance. Is there some "secret sauce" that Adobe is holdin
Re: (Score:2)
Comment removed (Score:4, Insightful)
Re: (Score:3, Insightful)
Let's just focus on Javascript, and leave this other crap outside (flash, activex, java). We don't need it. I try and use a page wihch requires Java on Linux and I get warnings about how IcedTea isn't working. I click on the link to update it, but I get taken to a Wiki page...like I'm going to spend my evening searching for a solution. (It `just works` under Windows). I used to spend a lot of time playing with Linux, but I can't be bothered any more.
Re:and i care (Score:4, Insightful)
Apple says wait a minute... (Score:2, Insightful)
... you can't open source any system level components in an iPhone or iPad without talking to us first!
Re: (Score:1)
Doesn't matter. You can't run Java on iOS can you? Hence, JavaFX won't run on an iPhone or iPad.
Re:Apple says wait a minute... (Score:4, Funny)
Doesn't matter. You can't run Java on iOS can you? Hence, JavaFX won't run on an iPhone or iPad.
And flash neither?
You stupid fucks. It'll work so that you bundle the jvm into your app - and this is totally acceptable for apple as long as you don't allow loading of new portions to it from the outside.
on another note - a lot of sensible desktop java programs do this as well.
(this doesn't mean that anyone should give a fuck about JavaFX).
Re: (Score:1)
Re: (Score:2)
As I read it, Oracle will provide a runtime environment that runs on iOs, hence you can run Java FX on iOs.
Re: (Score:1)
JavaFX is coded in Java. Perhaps someone should clue Oracle into the fact that iOS doesn't do Java.
Re: (Score:2)
Define 'soon' (Score:4, Interesting)
That said, if this really happens, then I suppose we will see Java FX really unencumbered and able to appear in Iced Tea and any other open source efforts?
Would using Java FX on Android have any advantages over using the native Android user interface features? (I don't know about iOS, so I won't ask, but someone familiar with iOS could ask and answer that one.) One could say that an advantage of Java FX on Android is that it makes more code you wrote for the desktop / browser / iOS / etc more directly reusable on Android. But like Swing before it, does it also result in a 'least common denominator' user interface across platforms that doesn't perfectly match the conventions of any single platform?
Re: (Score:2, Insightful)
> Since it's Oracle, I have to wonder "what's the catch".
They're trying to trick you into using Java, when everyone is dropping it as fast as they can!
Re:Define 'everyone' (Score:3)
I don't know where you just don't like the word Java, or whether you don't like the language, or whether you don't like Applets in the browser, or what. But the Java ecosystem is way larger than you imagine.
Re: (Score:1)
Java's technical merits are moot.
Oracle's has tarnish Java's good name.
Between the cross-platform exploits, Oracle's lack of eagerness to plug them until recently, and their attempts to monetize anything Open-Source from Sun that had no-strings-attached, people are running away from Java.
E.g. People don't want to touch LibreOffice because it has ONE dependency on Java in its BASE application.
Re: (Score:2)
Since LibreOffice just hit version 4.0 and the improvements keep coming in, I don't think you are correct. You may have meant OpenOffice. OpenOffice suffered more from Oracle's heavy handiness than any technical issues with Java.
Re: (Score:1)
As he said "The JVM (virtual machine) is one of the most amazingly well engineered machines ever created. " Sorry if you don't understand but it is probably one of the most researched and well understood machines on earth after x86. The jvm has so much amazing analysis performed on it that you don't really have to worry about whether your dog shit business case will work on it or not because financial firms trade on it, super clusters use it, and so to blurays and cell phones.
Re: (Score:2)
He could be in high school, a "fresh out", or a geek trying to get "street cred" by mindlessly bashing Java. This is slashdot.
Re: (Score:2)
Re: (Score:2)
> statement is basically "Well big business and financial corps use it so it must be good".
> This of course ignores the fact that many of those same corps have IE Intranet apps,
> VB apps and Excel apps and even Access apps
Those big corps are abandoning their IE only apps. Big corps don't have Excel and Access apps that do anything on any large scale. Small processes, yes, maybe -- just like a small
Re: (Score:2)
I agree "Everybody does it this way" isn't a justification just a result. Big business uses it because it is scalable, has a decent library, works well in a non-homogenous network cluster, and is one of the oldest and popular languages with GC and language primitives for parallelization. It's much faster than the dynamic type langu
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:3)
I can assure you Java would fall flat on it's face (in fact it and the companies that bet on it did...) if you tried to handle securities trading volumes
Or if you tried to run really massive-scale web sites on it, like, say, Google. Oops... much of Google is built with Java, including plenty of performance-critical code.
Java works just fine at really large scale, and at extremely high transaction volumes. It tends to require more RAM than a comparable system built with C or C++, but performance is close to identical assuming good engineering of both -- and it generally requires less effort in Java than in C or C++, even when you include the tuning effort
Re: (Score:2)
This shows only you have no clue at all ...
Should I reall list the majour trading Systems that are written in Java? Or are you confident, you can google them your own?
Re: (Score:2)
(I can assure you Java would fall flat on it's face (in fact it and the companies that bet on it did...) if you tried to handle securities trading volumes from just one exchange, say, NASDAQ.
Given that high-speed securities trading is about the #1 threat to life, freedom and security on the planet... is crashing the exchanges actually a bug?
Re: (Score:2)
No. You're wrong.
Technology ${X} would only be used EVERYWHERE if it were PERFECT. I'm not claiming Java is perfect. I'm merely claiming that it is very good. It has a lot of advantages that outweigh its disadvantages, as do many other technologies.
Technology ${X} has a lot of advantages that outweigh its disadvantages. That is why people use ${X}. Where X could be Java, Windows, Linux, Mac, Python, C, casse
Re: (Score:1)
It is used heavily in the enterprise, and many enterprises are now learning that is not such a good thing. Enterprise apps are often pinned to particular versions of Java. This has left many enterprises unable to update the versions of java on their desktop, which leaves them open to trivial drive-by attacks. This is causing real operational cost as companies have to rebuild machine after machine as they get compromised. At some point the pain will cross the point of costing more than replacing the Java app
Re: (Score:2)
The JVM (virtual machine) is one of the most amazingly well engineered machines ever created.
And, like many of its kind, it's the right solution to the wrong problem.
Re: (Score:3)
Re: (Score:2)
I do know the difference between a Java stack trace and a VM which crashes with a dump of the CPU registers. Platform was Ubuntu 10 LTS and the Oracle JVM.
I also checked the PDF parser. I does not use any native stuff.
Well, I took you at your word about crashing the VM. I was just curious how long ago it was, whose VM you were using, etc.
Re: (Score:2)
It is very unlikely that the JVM crashed. Very more likely is: it threw an Error or at least an Exception. Perhaps you should care to read and comprehend it.
Re: (Score:2)
Not everyone is dropping Java. Java is heavily used in enterprise systems. The JVM (virtual machine) is one of the most amazingly well engineered machines ever created. I don't know where you just don't like the word Java, or whether you don't like the language, or whether you don't like Applets in the browser, or what. But the Java ecosystem is way larger than you imagine.
Yes, Java has its uses. But it's gotten a bad name because Sun/Oracle touted it as a web application platform but never bothered to p
Re: (Score:1)
No one is dropping Java. .Net world are pretty seperated entities.
What would be the alternative? Frankly: there is none. The Java world and the
Re: (Score:2, Insightful)
There are plenty of alternatives if your top priority is not "cheap and plenty developers". Perl, Python, Smalltalk, C++. Yeah, C++ ! A couple of highly skilled C++ developers will create the same functionality at the same total cost (development, testting, maintenance, cost of operations) as the Java folks will deliver.
The only "problem" in the corporate world is that they want "affordable" developers and compromise on everything else. So they save some money on the short run and then pay big dollars/euros
Re: (Score:2)
While you are right with the hourly rates, I doubt there are any enterprise frameworks for the languages you mentioned. ...
If we say Java we don't mean the language but the platform.
There is not even a single standard for C++ to access a database, nor for GUIs
Same for Perl as it only has adapters to, C libraries (and whomwould want to use that?) SmallTalk is pretty dead right now, only used in web applications (seaside) and desktop applications. There is no serverside framework e.g. to have an application s
Re: (Score:1)
Definitely April fools - who's going to trust Oracle not to retroactively change the copyright terms and start sueing them? You go first.
Re: (Score:3)
Re: (Score:2)
Since you mention Flash as an alternative, I assume you are talking about this for use in the web browser. Wasn't there just very recently a web standard to use the web cam and set up video conversations between web browsers?
What you really need to explore is how to use that new web standard to secretly turn on the user's web cam, streaming video back to your server, while the browser plays streamed music with a mesmerizing visual display so the us
JavaFX replaces Swing? (Score:4, Informative)
Huh, who knew. Last I checked, JavaFX was built on top of Swing. Apparently that may have changed with 2.0.
Or maybe not. I can't tell.
But one thing seems pretty clear from screenshots: your JavaFX applications will fit in with the native desktop just about as well as your Swing applications did. Which is to say, "not at all."
Re: (Score:2)
Huh, who knew. Last I checked, JavaFX was built on top of Swing. Apparently that may have changed with 2.0.
Or maybe not. I can't tell.
But one thing seems pretty clear from screenshots: your JavaFX applications will fit in with the native desktop just about as well as your Swing applications did. Which is to say, "not at all."
JavaFX is its own thing, but they've made it possible to include JavaFX panels in Swing apps.
Re: (Score:2)
Swing Applications fit perfectly well into your native environmnet. If you have a particular application that does not, then the programmer likely hard coded a specific look and feel (like "plastic") . However this can be changed by command line options or system variables.
Re: (Score:2)
I also thought "JavaFX replaces Swing" didn't sound right either.
I figured JavaFX didn't really have a purpose....
Re: (Score:2)
No, I know next to nothing about the state of JavaFX. If you want me to talk to you about server-side features of Java, including some new Java 7 features I'm still not using because I have to stick with Java 6 for the foreseeable future due to IT overzealousness, that I can talk about.
If Oracle was serious about pushing JavaFX as a replacement for Swing, they've sure done a shit job of it. It was an optional install up until what, JDK 7u6 or so?
Of course, the last time I did a GUI in Java, I didn't use Jav
Re: (Score:2)
Some people don't like the look of Swing., put if you are programming it your own, I don't get why. As you simply can set it as you want.
Other people don't like the way how you program SWT.
I would never program in a glorified MFC (SWT is no GUI framework, it is a bad hacked library) to get a minimal different look and feel.
In our days you look on a beamer image projected to the wall and guess which framework was used to program it.
Sorry, neither SWT nor Eclipse RCP looks in any way more native than Swing. Y
"GUI File" is the Future (Score:4, Interesting)
<window width="300" height="300">
<edit width="100" height="20" value="Type name."
<button width="50" height="50" value="Submit"
</window>
Then do the logic in whatever language you want. I know it's a pipe dream with several problems, but damn it would be nice.
Re: (Score:2, Informative)
But how nice would it be to have an XML standard for all GUIs?
You mean like XHTML + CSS?
Re: (Score:1)
maybe this idea could also work for website development? that would be really really nice.
Re:"GUI File" is the Future (Score:4, Insightful)
"GUI File" is fine right up until your application gets more complex than a simple login page.
Re: (Score:2)
"GUI File" is fine right up until your application gets more complex than a simple login page.
This is why the web has failed for any application that requires anything more complex than a simple login page.
Re: (Score:2)
The web pages youo mean don't use "GUI files" but java script to create and render arbritary widgets.
Re: (Score:2)
Re: (Score:1)
Re: (Score:2)
I've always thought that having GUI files is the way to go instead of in code. I'm fine with XML (FXML in this case), but I'm sure some others have gripes and may prefer property files/etc. But how nice would it be to have an XML standard for all GUIs? Then all you have to do is load one XML file across GTK+, Qt, X11, Windows, Cocoa, and even OpenGL. Example:
<window width="300" height="300">
<edit width="100" height="20" value="Type name." />
<button width="50" height="50" value="Submit" />
</window>
Then do the logic in whatever language you want. I know it's a pipe dream with several problems, but damn it would be nice.
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul [mozilla.org]
Re: (Score:3)
Not very. Firefox does this with XUL. Different platforms have different conventions, you don't want the same interface across all of them. For instance, Android apps typically have menus that pop up from the bottom, whereas this isn't the norm on iOS. Sure, you'd have the same interface from the programmer's perspective, but from the user's perspective, your app works differently to all their other apps.
Re: (Score:2)
Re: (Score:2)
For instance, Android apps typically have menus that pop up from the bottom, whereas this isn't the norm on iOS.
Pick a hard one next time: the developer creates menus. On Windows etc the menus are normal, with submenus. On Android the top five menu items (first five) are listed with a more button as the sixth, and any press on a menu opens a submenu window.
Re: (Score:3)
Any standard that demands such specific width & height values be manually entered and numerically described is pointless. UI specs need to deal with general layout role indications, not try to lock into pixel-perfect "dumb" layouts that cannot manage being rendered with different fonts, resolutions, or aspect ratios.
Re: (Score:2)
Re: (Score:2)
Good point. It was just an example though. It could be changed to use "center" and "em" values.
that doesn't really solve different form factor machines running it.
j2me forms api solves all this,
but everything looks like shit.
WPF (Score:3)
Look up http://en.wikipedia.org/wiki/Xaml and it's use in WPF.
Re: (Score:2)
Wont happen because the ARM space is where Oracle makes all its JVM money these days (licensing J2ME and the ARM Java stuff). Also there would be licensing issues involved in sharing the details of the proprietary ARM Jazzelle Java instruction system.
Define "Open Source" (Score:1)
Oracle seems very active in suing anybody who uses Oracle open source.
> Oracle Files Appeal Brief in Oracle v. Google ~pj
http://www.groklaw.net/article.php?story=20130213000119924
Re: (Score:2)
Re: (Score:1)
They open source it, but if you are going to put out a device using java, you better pay them their pound of flesh. on PC, you never have to worry about this as the license is free for anything not mobile. Google didn't use the JVM and didn't call their VM system Java, so they were in the legal clear. Can't patent a language. Larry Ellison didn't understand this and tried to go thermonuclear on google, and it didn't work.
There has never been a problem with people writing apps in java for the Oracle JVM,
JavaFX 2 nice evolution for Swing (Score:4, Informative)
Re: (Score:2)
Swing is definitely functional, and Nimbus doesn't make me want to gouge my eyes out, but it's legacy as a cancerous outgrowth of AWT hurts it too much. It's amazing what they were able to do with that kind of foundation, but it's past time for something better.