LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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: 172

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 Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,823

Rep: Reputation: 4874Reputation: 4874Reputation: 4874Reputation: 4874Reputation: 4874Reputation: 4874Reputation: 4874Reputation: 4874Reputation: 4874Reputation: 4874Reputation: 4874
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: 367

Rep: Reputation: 136Reputation: 136
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
LQ Newbie
 
Registered: May 2020
Distribution: Slackware-Current
Posts: 8

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:58 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