#Why are there so many JDKs, and is the Oracle JDK paid?
1 messages ยท Page 1 of 1 (latest)
While you are waiting for getting help, here are some tips to improve your experience:
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 ๐
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)
but oracle jdk isn't free?
and why i can install it in oracle.com
link ?
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"
but now they're assholes?
no you don't
Basically, it's free up to 1 year after the release of a version, generally
As explained here https://www.oracle.com/cis/java/technologies/javase/jdk-faqs.html
But you can ignore all of that and just use OpenJDK that you get from adoptium
but maybe in java 25 you will start to have to
thats why amazon has their own jdk build too
https://adoptium.net/ is the best one for 90% of situations
so they're actually assholes
just because these people aren't at risk of doing shitty stuff
All large companies are
????
?
The "Eclipse Adoptium" people are not
and if i make an app with temurin jdk i don't have to pay nothing?
nope
hahaha
a lot of big companies, who are all assholes, have a vested interest in not paying for java
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
so its safe to assume the underlying thing will be free forever
they give you the choice between free and paid and you are saying that they are assholes because there is a paid version ????
otherwise amazon will sue oracle will sue google will sue...
so please stop spreading misinformation
atrevetete salte del closet destapate quitate el esmalte deja de taparte que nadie va a retratarte levantate ponte
please speak english
true
its not free for commercial use. its free for personal development
that's incorrect
its free for anything
i hate this topic. their marketing and UI is so bad that every second person is entirely misinformed about this
yeah, just looked it up, Java 17 changed the licensing
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
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
bc the jdk ur looking at has a liability clause
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
wasnt suggestion OpenJDK was owned by a different company. it's just their OracleJDK releases weren't free for commercial
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
