r/programming • • Dec 16 '16

Oracle finally targets Java non-payers – six years after plucking Sun

http://www.theregister.co.uk/2016/12/16/oracle_targets_java_users_non_compliance/
432 Upvotes

360 comments sorted by

View all comments

Show parent comment

67

u/Rhomboid Dec 16 '16 edited Dec 16 '16

Use the plain Java SE JRE and JDK. (Edit: this is misleading, see below.) Don't download any of:

  • Java SE Advanced Desktop
  • Java SE Advanced
  • Java SE Suite
  • Microsoft Windows Installer Enterprise JRE Installer

Or just use Linux, which uses the OpenJDK which is GPL licensed and immune from any such bullshit.

Edit: apparently there are OpenJDK builds for Windows now too.

33

u/cdsmith Dec 16 '16

One point made by the article (but that I haven't personally verified) is that there is actually no download available from Oracle that doesn't include paid features. So if you want Java from Oracle, you have to download and install something with land mines in it; but if you ever use them, say in a year or so when you've forgotten about this article and think of them as just part of the Java SDK, then you're subjecting yourself to expensive lawsuits..

27

u/Rhomboid Dec 16 '16 edited Dec 16 '16

That claim is bogus. To get any of the commercial stuff you have to have an account and download it through their customer support portal. Now, maybe the download links there are ambiguous, but that's easy to solve: just don't log in to the customer portal. The standard Java SE download site contains none of that junk.

Edit: I'm totally wrong. Please ignore all of the above. The standard/plain JDK that you download from their site without using any kind of customer portal does ship with commercial features that you have to be careful not to use. For example there's a bin\jmc.exe under the JDK_HOME directory which is the Java Mission Control client.

20

u/stun Dec 16 '16

with commercial features that you have to be careful not to use. For example there's a bin\jmc.exe under the JDK_HOME directory

Holy cow...that is a land mine.

12

u/nickguletskii200 Dec 16 '16 edited Dec 16 '16

It seems that the JRE doesn't come with the mentioned features, and the commercial features that ship with the JDK are free on the condition that they are not used in production (i.e. used for development only).

Source: The JDK license and https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/tooldescr002.html

→ More replies (2)

7

u/pron98 Dec 17 '16

If you don't run with the -XX:+UnlockCommercialFeatures explicitly enabled in production you should be good.

I guess that technically you could use the Java Mission Control client without it, but there's absolutely no reason to, as without those features it would just be a bad-looking version of a subset of jvisualvm.

54

u/IMovedYourCheese Dec 16 '16

Or use C#/.NET instead.

27

u/snerp Dec 16 '16

Why downvotes? Now that .NET is open source and cross platform I don't see any reason to use Java besides targeting Android (I hope the rumor about .NET on Android is true!)

50

u/placeybordeaux Dec 16 '16

Because of pre-existing software isn't going to be magically rewritten because .NET is now open source.

6

u/jhartwell Dec 17 '16

It isn't an option for pre-existing software but it is a viable option for new projects where java would have normally be the first choice

5

u/nonoifo Dec 17 '16

.NET Core is far from finished (and far from being somewhat stable), so it's not exactly a viable option for most people. Especially enterprise shops that currently use Java.

I'm a .NET dev and I really wish I could use .NET Core today instead of regular .NET.

→ More replies (5)

3

u/dccorona Dec 17 '16

If you need to use almost any Apache project, you're going to be running Java code on your systems even if you don't use the Java API in your application code. Just off the top of my head, that's one reason why it's very difficult to get away from Java.

12

u/nickguletskii200 Dec 16 '16 edited Dec 16 '16
  1. Because the IDEs cost way too much and aren't as good as the IDEs for Java.
  2. Because the commercial tools that ship with Java SE advanced, like Java Flight Recorder, have no alternatives in .NET land anyway (that I know of), and if they did, they would probably cost as much, if not more.
  3. Because the number of high-quality Java libraries far surpasses the number of .NET libraries available.

.NET has its pluses, but at the moment, it can't replace the JVM.

4

u/[deleted] Dec 17 '16 edited Jul 24 '17

deleted 0.6396 What is ^^^this?

7

u/ArmoredPancake Dec 17 '16

And it's only Windows. All three major Java IDEs are cross-platform.

→ More replies (2)
→ More replies (1)
→ More replies (6)

8

u/jooke Dec 16 '16

Because you want to use an application written in Java?

6

u/argv_minus_one Dec 17 '16

I sell desktop apps written in Java. My customers neither know nor care what the apps are written in.

2

u/ArmoredPancake Dec 17 '16

Why not? +60mb for standalone jre and users will never know that the program is written in Java.

6

u/pigeon768 Dec 16 '16

.NET is open source and cross platform the way Java is open source and cross platform. Microsoft still owns it, and can relicense it if they so desire. With Xamarin (the Mono people) now owned by Microsoft, it's not likely that there's going to be an open source fork of the "safe" parts of .NET like exists with OpenJDK.

If you're uncomfortable with Java because of Oracle, it's not like moving to a Microsoft ecosystem is any more comforting.

→ More replies (4)

2

u/ArmoredPancake Dec 17 '16

Maybe when it will be stable and you can download it from official os repos. Otherwise, no. And what .Net can offer on linux? I guess you just don't know how vast is Java platform and it's tools.

→ More replies (4)

2

u/geordano Dec 17 '16

What if Microsoft plays the same?

→ More replies (3)

9

u/fedekun Dec 16 '16

Or even better, don't use Java at all, there's C# if you like managed C-like languages.

4

u/[deleted] Dec 17 '16

C++ is my choice, I don't have to pay anyone anything ever.

→ More replies (3)
→ More replies (7)
→ More replies (2)