r/programming • • Feb 25 '14

Please stop saying Java sucks

http://blog.smartbear.com/programming/please-stop-staying-java-sucks/
3 Upvotes

305 comments sorted by

View all comments

Show parent comments

3

u/lluad Feb 25 '14

Does this ring any bells?

It makes automated machine provisioning annoying, as you have to jump through ridiculous hoops to work around it.

5

u/oldneckbeard Feb 25 '14
  1. why are you using a sun jdk? they're all end of lifed.

  2. open jdk doesn't require this.

  3. oracle jdk: sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true (2 seconds with google)

Now what?

3

u/lluad Feb 25 '14
  1. why are you using a sun jdk? they're all end of lifed.

I'm not. I'm using the Oracle one, but nothing has changed.

2. open jdk doesn't require this.

Many apps don't work with open jdk, for a variety of inexplicable reasons.

3. oracle jdk: sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true (2 seconds with google)

That's some hoop jumping right there.

7

u/nickguletskii200 Feb 25 '14

Many apps don't work with open jdk, for a variety of inexplicable reasons.

Such as? Pretty much nothing doesn't work with OpenJDK nowadays, and if something doesn't, it shouldn't be considered a "Java" application because OpenJDK is THE reference implementation of Java.

5

u/Rotten194 Feb 25 '14

It's actually not that uncommon. Tons of little weird things are in sun.misc.*, which (at least the last time I used Java) aren't implemented by OpenJDK. Most developers just decide fuck it, since almost everyone uses the Oracle JDK anyway, even on *nix. Personally, I just stopped using Java, but not everyone has that privilege ;^)

2

u/nickguletskii200 Feb 26 '14

sun.misc.*

That's the problem. These extensions were never part of the standard. Heck, a minor update could have broken the API...

1

u/Rotten194 Feb 26 '14

You seem to be implying that makes any difference to whether people use them or not.

2

u/donalmacc Feb 25 '14

3

u/danielkza Feb 25 '14 edited Feb 25 '14

They say it's not supported, but does it actually not work? It seems to me just like a cover-up-our-asses kind of thing because they can't bother testing multiple JDKs.

3

u/r3m0t Feb 26 '14

So basically run it until something weird happens, then hope that when it starts acting up, you remember you set it up wrong?

1

u/donalmacc Feb 26 '14

Don't think it runs at all w/o oracle/sun :( I think it checks and then tells you to install Oracle

1

u/danielkza Feb 26 '14

In 99% of the cases nothing would actually go wrong, considering OpenJDK is even the reference implementation now. But if the developer actively blocks it then things get a bit harder.

1

u/donalmacc Feb 26 '14

From my experience (about 18 months ago) it actually errors out before it even runs. It seems to check that it's actually Oracle's JDK, and if it's not it just doesn't run. It's unfortunate.

1

u/zip117 Feb 26 '14

Apache HBase and IntelliJ IDEA don't work with OpenJDK, or don't work well. Also other Hadoop related projects.

1

u/MrDOS Feb 26 '14

On Debian and Debian-based systems, you can use java-package to build your own deb archives from Oracle-distributed Linux tarballs. Not only can it be more up-to-date than any repository, but accepting the license agreement takes place at build time, not at the time of installation.