LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-12-2020, 10:53 AM   #1
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Rep: Reputation: Disabled
OpenJDK vs Oracle's JDK


I don't fully understand the situation with Java being closed source and an open source alternative being available, but I'm in need of installing Java. And the option to use an open source alternative seems tempting as I'd like to support open source where I can. So I'm curious. Is it advised to bother with Oracle's JDK? or is OpenJDK just fine for running and developing Java programs and applications?
 
Old 07-12-2020, 11:23 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
In general yes, openJDK is fine. There can be cases where it is not acceptable (or just will not work), but others in this forum will tell you there are no such cases.
 
1 members found this post helpful.
Old 07-12-2020, 12:38 PM   #3
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
If you are using SBo package builds they may require one or the other. Not all slackbuilds just look for 'java' of a certain version (although these days they probably should) but insist on a particular one. So I'd look for the one that's going to satisfy the dependencies of any packages you'll use.

There's no drawback to using Oracle if it's not for commercial/business use.
 
1 members found this post helpful.
Old 07-12-2020, 10:40 PM   #4
uiopqwerty
Member
 
Registered: May 2020
Distribution: Slackware64 15.0
Posts: 31

Rep: Reputation: Disabled
In general you can run OpenJDK. Some applications suggest using Oracle JRE in production - e.g. the recommended production settings for Apache Cassandra require this. If your applications aren’t running in production, you can fairly safely use OpenJDK or another free distribution of Java. As others have mentioned, it is prudent to make sure you’re adhering to Oracle’s licensing if you use their JRE.

Re: Java being closed source - there was a time when this was true, but the Java language is now fully open source, and OpenJDK (which is the reference implementation of Java) is released under GPLv2 (+classpath exception)
 
3 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] On purging OpenJDK and installing the Oracle JDK ZTagr Linux - Software 5 07-23-2015 12:24 PM
Is there a way to install openjdk without oracle jdk? Altiris Slackware 4 06-14-2015 10:55 PM
[SOLVED] both openjdk and oracle jdk on debian Reprovo Linux - Newbie 1 12-01-2014 07:01 AM
[SOLVED] Both java-1.7.0-openjdk and java-1.6.0-openjdk are installed ?? SharpyWarpy Linux - Software 2 01-16-2013 11:28 AM
openjdk-6-jdk vs official JDK? davidstvz Debian 3 09-22-2010 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration