News for hackers. Stuff that matters.
Re:Oracle and the fall of Java EE by Longhanks on Friday July 08, 2016 @08:48AM (#12055077)
And now imagine where Java could be if the ecosystem wasn't completely fucked up by oracle. Imagine a Java with a sane, user friendly installer, an open source community supported by a big corporation, actual development, no completely insane lawsuits.

Instead, developers want to abandon the JVM platform. They actively seek new platforms and create them.

The damage is done.

Re:Oracle and the fall of Java EE by KevinEldon on Friday July 08, 2016 @12:34PM (#12056752)
Oracle pays very senior engineers and innovators to create a stable and still evolving ecosystem. Java is slow and steady. The JVM enables other innovators to explore and create languages radically different than Java. I am very thankful for Oracle's stewardship of Java and the JVM.
Re:Oracle and the fall of Java EE by filereaper on Friday July 08, 2016 @01:06PM (#12057003)
On the topic of stewardship, I highly recommend this talk by Brian Goetz titled "Stewardship: the Sobering Parts" [1]

Brian goes about how important compatibility is for the language, the concept not throwing customers code under the bus by bringing breaking incompatibilities. (ie Python 2 --> 3)

Java has its warts and isn't "cool" but I respect their design decisions.

[1] https://youtu.be/2y5Pv4yN0b0?t=1578

Re:Oracle and the fall of Java EE by KevinEldon on Friday July 08, 2016 @01:46PM (#12057340)
Thanks for the link. I haven't watched that talk, but I will, and I was thinking of Brian when I wrote my comment. His work and he work of others on the Java team is important, serious, and hard.
Re:Oracle and the fall of Java EE by claystu on Friday July 08, 2016 @08:58AM (#12055137)
What's so hard about the JVM install? I googled for "java download" and this was my first hit: https://java.com/en/download/

Went there and found a single, totally obvious button labeled "Free Java Download" that detects your browser and Operating System and makes sure you download the proper version of the JVM.

How much easier could it be?

Re:Oracle and the fall of Java EE by vetinari on Friday July 08, 2016 @09:24AM (#12055281)
Except for the above malware comments, what exactly does "Install Java" mean?

You cannot redistribute the installer or the installed files. Except other things it means, you cannot make a docker image with java app and redistribute it. Everyone has to download their own java installer and build images themselves.

Re:Oracle and the fall of Java EE by SSLy on Friday July 08, 2016 @09:38AM (#12055357)
Re:Oracle and the fall of Java EE by raverbashing on Friday July 08, 2016 @11:54AM (#12056388)
Yes. But openJDK might not solve your problem
Re:Oracle and the fall of Java EE by SSLy on Friday July 08, 2016 @03:38PM (#12058094)
Is there one feature relevant to running enterprise apps that oracle jdk SE (straight out compiled from openjdk sources) has that the gpl edition does not?
Re:Oracle and the fall of Java EE by chvid on Friday July 08, 2016 @10:32AM (#12055777)
I don't understand where you have this information from.

Plenty of software comes with Java embedded - ie. IntelliJ Idea. Last time I installed Java was on a digital ocean remote box and I did it through apt-get.

Java may have some licensing that cause some open source system distributions not to include it but that is really their game.

Re:Oracle and the fall of Java EE by y4mi on Friday July 08, 2016 @12:09PM (#12056537)
yes, you can install open jre through repos.

most applications put "oracle jre" in their dependencies though.

Re:Oracle and the fall of Java EE by oldmanjay on Friday July 08, 2016 @09:58AM (#12055491)
I have no recriminations prepared for you but I am curious; where did you get the idea you can't make docker images for java apps? Did you piece it together mistakenly based on incomplete knowledge or is someone actually spreading that around?
Re:Oracle and the fall of Java EE by kieranelby on Friday July 08, 2016 @10:23AM (#12055702)
Don't know about other poster, but I always thought that while you can make docker images for Java apps that include the Oracle JRE, there are restrictions if you want to distribute them - see http://www.oracle.com/technetwork/java/javase/terms/license/... . The no modifications clause is problematic for GPL software.
Re:Oracle and the fall of Java EE by kodablah on Friday July 08, 2016 @11:59AM (#12056438)
> You cannot redistribute the installer or the installed files. Except other things it means, you cannot make a docker image with java app and redistribute it. Everyone has to download their own java installer and build images themselves.

This is only true for Oracle Java, which is basically OpenJDK and some dev tools. OpenJDK is basically all you need and you can redistribute it or docker images with it. See http://zulu.org/

Re:Oracle and the fall of Java EE by StevePerkins on Friday July 08, 2016 @10:36AM (#12055807)
INSTALLING JAVA

===============

Even if you are Day One brand-new to Java, page #1 in any book will tell you to download a Java Development Kit (JDK). Any Google search would take you straight to the download page for Oracle's implementation, which is fine.

The Oracle JDK does not include any "toolbar" malware. That's only an issue for the Oracle JRE download (i.e. the runtime without any compiler)... which page #1 in book will tell you not to bother downloading ever.

The JDK is open-source, based on the "OpenJDK" codebase (much like the difference between Chrome and Chromium). Oracle's binary build has some restrictions on redistribution (see below), but there are numerous other OpenJDK builds. Every Linux distribution has one, as does homebrew for OS X, and there are at least two for Windows:

http://www.azul.com/downloads/zulu/

http://developers.redhat.com/products/openjdk/overview/

In the past, there were enough differences between the base OpenJDK and Oracle's build that people were wary of using OpenJDK. As of Java 7, and especially now with Java 8, those differences are nearly zero.

REDISTRIBUTION

==============

You absolutely CAN redistribute Java. OpenJDK builds have no restrictions whatsoever. Oracle's proprietary runtime binaries are also redistributable, with the only real restriction being that you can't exclude certain files (i.e. they don't want crippled Oracle runtimes floating around that can't run core Java):

http://www.oracle.com/technetwork/java/javase/jdk-8-readme-2...

Not only are you allowed to redistribute even Oracle's binaries, but the latest JDK includes a "javapackager" utility. It bundles up your code, along with a stripped-down embedded runtime, with an executable wrapper so that you can distribute your app as a zero-dependency standalone (on Windows, OS X, or Linux). Interestingly, I've found that creating an installer for a JavaFX GUI application, with the runtime included, is slightly smaller than the installer for a similar GitHub Electron based app.

https://docs.oracle.com/javase/8/docs/technotes/tools/unix/j...

https://gitlab.com/steve-perkins/MediaGallery-javafx

Re:Oracle and the fall of Java EE by tajen on Friday July 08, 2016 @11:23AM (#12056154)
So why do we have to add a special source repository to do "apt-get install" and why is there a mandatory interactive license approval?
Re:Oracle and the fall of Java EE by tremon on Friday July 08, 2016 @11:26AM (#12056172)
Because (Oracle) Java comes with its own EULA, and the DFSG forbid any EULA in Debian main.

OpenJDK is in Debian main, and does not require user interaction.

Re:Oracle and the fall of Java EE by amluto on Friday July 08, 2016 @09:01AM (#12055148)
Dunno. Do you want the ask.com toolbar? How about updates that install the new version and remove the old version? Or maybe they've fixed the latter issue by now.
Re:Oracle and the fall of Java EE by claystu on Friday July 08, 2016 @09:19AM (#12055258)
Well, the oracle website does tell you how to disable the toolbar, though I agree it shouldn't be there in the first place. As for uninstalling the old version, are you saying you want the new version to automatically uninstall old versions?
Re:Oracle and the fall of Java EE by amluto on Friday July 08, 2016 @11:48AM (#12056335)
Yes. A new security release should absolutely remove the old release or at least disable any ability for less-than-fully-trusted code to invoke it.
Re:Oracle and the fall of Java EE by eli on Friday July 08, 2016 @09:02AM (#12055154)
On Windows it comes with an unrelated installed-by-default "malware" browser toolbar.
Re:Oracle and the fall of Java EE by acveilleux on Friday July 08, 2016 @09:43AM (#12055392)
If you need to provision things automatically, you need to jump through hoops to bypass going through that website. For licensing reason the Oracle JDK/JVM cannot be distributed by O/S vendors.
Re:Oracle and the fall of Java EE by ascagnel_ on Friday July 08, 2016 @09:02AM (#12055159)
For one, it'd be nice if it only did what it says on the tin: install Java. There's no reason that a platform like the JRE should be installing a piece of crapware.
Re:Oracle and the fall of Java EE by rblatz on Friday July 08, 2016 @11:00AM (#12055986)
Why should it detect my browser? I want to run Java Applications Lik Minecraft not Java insecure applets in my browser.
Re:Oracle and the fall of Java EE by woogy on Friday July 08, 2016 @09:32AM (#12055323)
You don't need to imagine it, you can just look at what MS has done with .net and the community that's forming as a result. Java has such a horrendous ecosystem, it's really unacceptable.
Re:Oracle and the fall of Java EE by StevePerkins on Friday July 08, 2016 @10:43AM (#12055879)
1. I check in on .NET Core and ASP.NET Core every few months, to see if the tooling and documentation have stabilized. I just happened to check in yesterday, trying to create a "Hello World" ASP.NET Core web app. The skeleton project created by the "dotnet new" command doesn't match the "Getting Started" documentation on the ASP.NET Core website. After tinkering in frustration for an hour, I gave up. See you again in another few months.

2. What .NET open source community? I'm not aware of single significant open-source community project in that ecosystem that isn't a lagging imitation of something from the Java community (e.g. Akka.NET, MassTransit, etc). There's a lot of excitement around VS Code, and the possibilities of future stuff on .NET Core, but chatter on HN and Reddit isn't the same as actual shipped code.

3. If by "ecosystem" you mean web forums filled with college students chatting about it, then fine. But I think for most people, "ecosystem" refers to the availability of production-grade libraries and infrastructure components. Try naming one server-side niche in which Maven Centrals lags behind any other language in existence.

Re:Oracle and the fall of Java EE by treehau5 on Friday July 08, 2016 @10:40AM (#12055845)
> Java has such a horrendous ecosystem, it's really unacceptable.

This has not been my experience at all. Java's ecosystem and vast libraries of battle tested software is unmatched on any platform.

Re:Oracle and the fall of Java EE by dloose on Friday July 08, 2016 @02:54PM (#12057832)
You need to explain what you mean by "ecosystem".
Re:Oracle and the fall of Java EE by filereaper on Friday July 08, 2016 @12:55PM (#12056922)
We'd be in a much better world if IBM or Redhat had taken over Java.

That being said IBM is working on open-sourcing their core JVM technology to act as platform, not just for Java but other runtimes as well. [1]

There is hope still...

[1]http://www.infoworld.com/article/3014128/open-source-tools/i...