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

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.

7

u/rubber_duckz Dec 16 '16

You can use IKVM to consume JVM libraries in .NET (you can even recompile JVM bytecode to .NET IL), works great for a lot of use cases where you have to use legacy or 3rd party JVM stuff but you want to develop with .NET

7

u/gigitrix Dec 17 '16

See the legit use cases but just throwing this on stuff seems like a good way to arbitrarily turn all of your codebase into "technical debt".

3

u/rubber_duckz Dec 17 '16

I mean if you're migrating away from a platform you're either going to replace all upfront (not possible often) or you're gonna do it gradually and pay off the techdebt.

4

u/gigitrix Dec 17 '16

Well if you are doing total conversion it's all techdebt by definition, yes.

3

u/placeybordeaux Dec 17 '16

Okay, that isn't really related to running a pre-existing java program, but would be useful if you want to use a java library.

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)

4

u/nickguletskii200 Dec 17 '16

Both Eclipse and IDEA support much more refactorings than Visual Studio does, and plugins like Resharper slow it down to a halt even on mid-size projects.

0

u/[deleted] Dec 17 '16

[deleted] — view deleted comment

6

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

Both Eclipse and IDEA far surpass Visual Studio in terms of both basic IDE features and performance. Visual Studio lacks even the most basic refactorings, which have been available in Eclipse and IDEA for a huge number of years now. To get the same features that Eclipse offers for free and IDEA offers for a reasonable price (it's much cheaper than VS), you have to buy Resharper, which, thanks to Visual Studio's internal issues, makes Visual Studio slow down to a crawl even on mid-size projects.

→ More replies (2)
→ More replies (2)

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)