LinuxQuestions.org
Review your favorite Linux distribution.
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 08-09-2014, 07:54 AM   #1
rubankumars
Member
 
Registered: Oct 2010
Location: india
Distribution: debian 8,debian 9,slackware 14.2
Posts: 158

Rep: Reputation: 12
openjdk vs jdk what is the good?


I am using oracle jdk but I want to know whether openjdk will cause any problems if installed and used?
What is the best?
 
Old 08-09-2014, 08:11 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Try both. It depends on for what you use it, so IMO there's no definitive answer.

But if you are in a mood of "If it ain't broke, don't fix it", just keep what you have.

Last edited by Didier Spaier; 08-09-2014 at 08:13 AM.
 
Old 08-09-2014, 08:16 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
The only problem I have seen with openjdk/openjre is an inability to complete the java verification on the Oracle website.
 
Old 08-09-2014, 08:49 AM   #4
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,534

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Granted, the only thing I've used java for in the past few years is minecraft, but the OpenJRE has been just fine. It's come a long way in the past few years. The OpenJDK, as I understand it, is for people who need to develop/write java.
 
Old 08-09-2014, 09:42 AM   #5
frankiej
LQ Newbie
 
Registered: Feb 2013
Distribution: Fedora
Posts: 29

Rep: Reputation: 24
The Oracle JDK is based on the OpenJDK source but they also add some closed source components before releasing the final product.

I have not had a problem running anything using OpenJDK but I do see commentary sometimes stating a particular Java app only works correctly with the Oracle JDK. I have downloaded a few things that state the same thing, but they seem to run fine with OpenJDK.

If a pure open source implementation is your goal then replacing Oracle JDK with OpenJDK should be fine. But if that doesn't matter, then as a previous poster stated, if it ain't broke don't fix it.
 
Old 08-09-2014, 09:50 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by allend View Post
The only problem I have seen with openjdk/openjre is an inability to complete the java verification on the Oracle website.
Works for me. On http://java.com/verify my openjre 7u65 is properly detected, and because Oracle just released a newer version mine is flagged as outdated:


Eric
Attached Thumbnails
Click image for larger version

Name:	openjre_verification_oracle.PNG
Views:	57
Size:	21.2 KB
ID:	16082  
 
Old 08-09-2014, 10:16 AM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Quote:
Works for me
In that case, it must be an issue with the NoScript plugin, which I use as a matter of course. That java verify link fails to complete for me on three machines using your openjre builds (32 and 64bit) with Firefox, despite telling NoScript to allow all on that page.
 
Old 08-09-2014, 10:47 AM   #8
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
I have a couple of Java applications plus I manage a fairly large group of collections with DSpace. I have had trouble with all using OpenJDK (over a few years now) but none with Oracle JDK (which is the development kit; JRE is the run-time). DSpace is built with Java; it will build with Oracle JDK, it will not build or run properly (in my experience) with OpenJDK.

Slackware comes with, in the /extra directory, a SlackBuild for JDK (you've probably been using that, but just in case). When you install JDK you also install JRE with it so there's no problem with compiling Java source and executing Java applications that require JRE. You should, after installing either JDK or JRE disable the Java Plug-in in all browsers you use; just do it and avoid any trouble.

In my book, if I have problems with open source and there is a proprietary (or quasi-proprietary) version available, I vote, in this case, for Oracle (and I do not like anything about Oracle as an organization; I have to hold my nose and hit the enter key).

Like Dieder says, it ain't broke, don't fix it.

Hope this helps some.
 
Old 08-10-2014, 02:54 AM   #9
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Rep: Reputation: 73
openjdk vs jdk what is the good?

OpenJDK has served me well in my projects, but I recently found that android studio is buggy with OpenJDK. I gave it its own private oracle jdk.

Last edited by mcnalu; 08-10-2014 at 03:04 AM.
 
  


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] 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 7 Install VisionIncision Slackware 19 04-26-2012 12:19 AM
openjdk-6-jdk vs official JDK? davidstvz Debian 3 09-22-2010 02:06 PM
About openjdk-6-jdk satimis Programming 3 05-03-2010 06:07 PM
Where to get JDK 1.5.0_08 and JDK 1.6.0_10 for Linux Redhat Itanium servers java_ascii Linux - Software 1 09-22-2009 11:17 AM

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

All times are GMT -5. The time now is 12:03 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