#Why are there so many JDKs, and is the Oracle JDK paid?

1 messages ยท Page 1 of 1 (latest)

mental coralBOT
#

<@&987246399047479336> please have a look, thanks.

#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

#

@spring marlin

Download latest Java from https://adoptium.net/, run the installer.

Open a CMD and type java -version and javac -version, if both show your new Java version, you have successfully installed Java! ๐ŸŽ‰
https://i.imgur.com/CurMujt.png

In order to prevent issues with old installations you may want to remove them. Type where java and where javac. They should only show the new and no old entries:
https://i.imgur.com/x5k1GxG.png

If that is not the case, you may want to clean up. Therefore, type "environment variable" into the Windows search and follow the dialog. You will see two entries for a variable called Path, one for your user and one for the system. This variable tells Windows where to look for commands, like java and javac.
https://i.imgur.com/3bN9QE2.png

Edit both. Make sure that they only list the entry to your new Java installation and remove all the old entries you have seen with the where command before:
https://i.imgur.com/JAYog1U.png

Confirm and close all dialogs. Restart your CMD window and try where java and where javac again. It should only list the new installation now and nothing else.

Congratulation, your Java is now finally ready, happy coding ๐ŸŽ‰

Eclipse Adoptium provides prebuilt OpenJDK binaries ...

split ermine
#

And as a tl;dr
Yes there are several JDK, but the differences are only licenses and additional services

#

for you, you can just use adoptium

#

(which is OpenJDK)

spring marlin
#

but oracle jdk isn't free?

split ermine
#

use OpenJDK

spring marlin
split ermine
spring marlin
steady dove
#

installer is there

#

@spring marlin The longer version of the story is that there is one codebase which is "openjdk"

#

if you compile the code for that codebase, you can distribute it

#

and historically Oracle - the company which owns the word "java" - have been dicks with the licensing of the compiled code for java

#

so if you downloaded java from their website and you worked for a company they thought they could sue for $$$, they would

#

this is currently not the case, you can use that download link no problem, but we as a community have some long scars

#

so we prefer people download it from people who haven't historically been assholes

#

the problem is that Oracle owns the word java, so those other people had to pick a dumb name like "adoptium"

spring marlin
#

but now they're assholes?

steady dove
#

nah nobody is currently

#

but we all kinda think oracle will start to be again

spring marlin
#

XD

#

so if i make a app with oracle jdk i have to pay oracle?

steady dove
#

no you don't

split ermine
steady dove
#

but maybe in java 25 you will start to have to

#

thats why amazon has their own jdk build too

spring marlin
#

so they're actually assholes

steady dove
#

just because these people aren't at risk of doing shitty stuff

steady dove
split ermine
spring marlin
split ermine
#

How can they be ?

#

like they can't make money ?

steady dove
#

The "Eclipse Adoptium" people are not

spring marlin
#

and if i make an app with temurin jdk i don't have to pay nothing?

split ermine
#

nope

steady dove
#

you do not have to pay anything, correct

#

think of java like this

spring marlin
#

hahaha

steady dove
#

a lot of big companies, who are all assholes, have a vested interest in not paying for java

split ermine
#

They literally put the JDK as open source so anyone can use it.
And you are saying they are bad because even if they put it open source so you can always get it for free anyway, if you use their own special version which doesn't contain anything more, you have to pay ?

#

like really guys

steady dove
#

so its safe to assume the underlying thing will be free forever

split ermine
#

they give you the choice between free and paid and you are saying that they are assholes because there is a paid version ????

steady dove
#

otherwise amazon will sue oracle will sue google will sue...

split ermine
#

so please stop spreading misinformation

spring marlin
spring marlin
#

guys have a good day

#

thank u for help me

#

kotlin is better kotlin

crude portal
#

true

ornate birch
silk imp
#

its free for anything

#

i hate this topic. their marketing and UI is so bad that every second person is entirely misinformed about this

ornate birch
#

yeah, just looked it up, Java 17 changed the licensing

silk imp
#

but even before that, it was free

#

it part that wasn't free was their life-support

#

u know, oracle 24/7 phone support and consulting

#

which they, stupid as they are, sold via a license that looked awfully like a jdk

#

giving people the impression that there's no free variant anymore

#

especially bc Google still indexed their page instead and lead everyone to it

ornate birch
#

the license says

(i) Personal Use,
(ii) Development Use,
(iii) Oracle Approved Product Use, and/or
(iv) Oracle Cloud Infrastructure Use.

the FAQ gives an example

For example, you could use a Java productivity application to do your own homework or your personal taxes, but you could not use it to do your business accounting

#

where are you seeing that its free for commercial use?

#

im probably misinterpreting something, but im pretty sure i also heard it mentioned in a lecture that starting with OTN, commercial use of Oracle Java was no longer free

silk imp
#

they rebranded their "java for everyone"-package to OpenJDK

#

who do u think owns openjdk and the website

#

its oracle

#

the jdks u get on the oracle.com website are for commercial partners

#

with offers like live-support and liability

#

its a pity that google still indexes the website higher than any other website

#

cause its just the wrong website to go to - also from oracles pov

#

their rebranding just failed massively

#

people got the impression that oracle are dickheads and openjdk is some sort of community initiative coming to the rescue

ornate birch
#

wasnt suggestion OpenJDK was owned by a different company. it's just their OracleJDK releases weren't free for commercial

silk imp
#

yeah bc liability

#

if ur a massive company and ur losing millions due to a bug in the jdk, u can get money back from oracle - if you used that jdk/license

#

if u dont need that, oracle would want u to go to their second website, openjdk.com and get a jdk there

ornate birch
#

yup, i think thats what the OP was asking about, whether the OracleJDK release was free

#

and it does seem to be now, since 17 with the NTFC license

silk imp
#

the openjdk jdk is usually also called oracle jdk

#

since it is from oracle

#

๐Ÿคทโ€โ™‚๏ธ

#

anyways, i felt the urge to clarify that

#

๐Ÿ‘