LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-17-2018, 07:33 PM   #1
jrch
Member
 
Registered: Mar 2006
Posts: 43

Rep: Reputation: 1
Thumbs down failed 'jdk' slackbuild killing several slackbuilds


I recently reinstalled slack 14.2. Trying to recreate the slackbuilds I use, including libreoffice and scilab, I run into a wall because there simply ARE NO MORE 'jdk' suites. Oracle has gone to other frameworks. This means several slackbuild scripts simply no longer work, because the 'jdk' slackbuild fails.

Trying to build, as an alternative, "Libre Office6.1.3.2" is a labyrinth of tedious misdirection, too confusing to even inspire one to begin, unless one has a fetish for complex software. 'openjdk' likewise is not friendly to those who would try to recreate a 'jdk' option.

The result is a typical linux embroglio, one piece of software goes missing, which creates a chain-reaction of multiple failures across the spectrum of highly used programs - such as good office software - now unavailable to many who didn't get the timing right.

Robby Workman has provided us with many very useful pieces of software (several good slackbuilds). He may be very busy or ill. I would certainly hope that he - or someone with similar skills (not me, I'm just too old and cranky) can resurrect a working form of 'jdk' and its interface with a working form of 'libreoffice'.

Right now, there are no slackbuilds for libreoffice (and others) which are workable for a non-guru.

Please do not point to 'openJdk' and 'LibreOffice6.1.3.2' as solutions, and call this problem 'solved'. These are not solutions, except for the very few expert programmers.

jrc
 
Old 12-17-2018, 07:55 PM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,330

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
So is this one of those threads where you rant and preemptively reject solutions while providing no information about the problems you are actually encountering? I have built openjdk with no issues and without needing to be a programmer to do it. What problems are you having with building it?
 
Old 12-17-2018, 07:56 PM   #3
regis_n_bits
Member
 
Registered: Mar 2006
Distribution: Slackware64-current (kernel 4.19.5)
Posts: 93

Rep: Reputation: Disabled
You can modify the java.Slackbuild script for use with Java 8 (either JRE or JDK). As far as I can remember there is one place in this script where you will have to update the version string to "8u191".

The Java 8 *.tar.gz tarballs are still available on the oracle website. Download and place the downloaded tarball in the directory with the updated Slackbuild script, and you should be good to go for creating a package for Java 8.

---------

I should add that I was referring to the java.Slackbuild script found in the extra/java directory of Slackware. That is the one that I typically use.

Last edited by regis_n_bits; 12-17-2018 at 08:02 PM. Reason: Added info about the slackbuild script used.
 
2 members found this post helpful.
Old 12-17-2018, 09:08 PM   #4
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 499

Rep: Reputation: 288Reputation: 288Reputation: 288
Does your use of LibreOffice necessarily entail any of its java components (typically database components)? As some here have often been keen to point out, building LibreOffice without Java support is possible. As mentioned in its README file, the LibreOffice.SlackBuild (the build from source version) enables this by setting JAVA=no when you run the script i.e.
Code:
JAVA=no sh ./LibreOffice.SlackBuild
Also, although I haven't tried this myself, you could probably use the libreoffice.SlackBuild (the simpler repackaging version - note its lowercase name). The repackaging itself certainly doesn't need a jdk, which is purely a runtime requirement - but only for some components. If you're not using those components then it shouldn't matter that you don't have any java installed.

chris
 
Old 12-17-2018, 10:13 PM   #5
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware, Fedora, NetBSD
Posts: 1,063

Rep: Reputation: 718Reputation: 718Reputation: 718Reputation: 718Reputation: 718Reputation: 718Reputation: 718
I might be wrong, but I believe you are asking for a JDK?

Here are a few solutions:

Precompiled from SBo:
https://slackonly.com/pub/packages/1...pment/openjdk/

Precompiled from Zulu:
https://cdn.azul.com/zulu/bin/zulu8....nux_x64.tar.gz

Directly from Oracle:
https://download.oracle.com/otn-pub/...nux-x64.tar.gz


There are also downloads, as Chris.Willing ponts out, of LibreOffice that don't require you to compile against Java. For intance, use rpm2txz on an RPM from https://www.libreoffice.org/download/download/ and you're up and running.

I've never used Scilab, so no data there. But with one of the JDKs listed above, it seems like it ought to work. Certainly I've tested all those JDKs against, for instance, Linux Sampler with success.
 
1 members found this post helpful.
Old 12-17-2018, 11:50 PM   #6
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Posts: 472

Rep: Reputation: 165Reputation: 165
Man, I don't know much about much and I just the other day agreed to Oracle's terms and downloaded jdk then used a slackbuild without a problem. My biggest problem was negotiating their confusing (for me) website
 
3 members found this post helpful.
Old 12-18-2018, 11:21 AM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,633

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
Did you read the README for jdk? The key thing is:

Code:
*******************************************************************************
* YOU MUST AGREE TO ORACLE'S DOWNLOAD AGREEMENT BEFORE YOU CAN DOWNLOAD THE   *
* JDK BINARY PACKAGE FROM THEM.  THIS MEANS THAT YOU HAVE TO USE SOME SORT OF *
* WEB BROWSER, E.G. FIREFOX, TO DOWNLOAD IT. LINKS, WGET, ET AL WILL NOT WORK *
*******************************************************************************
You can't use automated tools to build jdk because Oracle requires you to agree to its license terms before you can download it. This causes all automated tools to fail to download it, which will cause them to fail to build it (which then causes that cascade failure you mentioned).

I just checked, and the download still works fine. You can go to Oracle's site by visiting the Homepage link on SBo, then select JDK8 downloads, then click on the "Accept License Agreement" radio button and finally, click your download link (64bit and 32bit -- these links won't work until the license agreement is accepted). You can then either save the file to your automated tool's source directory or manually run the SlackBuild to generate the package.

Last edited by bassmadrigal; 12-18-2018 at 12:42 PM. Reason: Added direct links, and the requirement of accepting the license before downloading
 
3 members found this post helpful.
Old 12-18-2018, 04:27 PM   #8
_peter
Member
 
Registered: Sep 2014
Distribution: slackware
Posts: 35

Rep: Reputation: Disabled
no and yes, in that order. you are just probably having difficulties like me downloading from the oracle website, here

Quote:
Originally Posted by jrch View Post
there simply ARE NO MORE 'jdk' suites
This means several slackbuild scripts simply no longer work, because the 'jdk' slackbuild fails.
the following:

Code:
wget https://slackbuilds.org/slackbuilds/14.2/development/jdk.tar.gz
tar xvfz jdk.tar.gz
cd jdk
mv jdk-8u192-linux-x64.tar.gz ./
sh ./jdk.SlackBuild
should work for you as it did for me, please re-try.
Attached Thumbnails
Click image for larger version

Name:	oracle.png
Views:	18
Size:	72.8 KB
ID:	29225  
 
Old 12-19-2018, 01:40 AM   #9
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,149

Rep: Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515
Quote:
Originally Posted by jrch View Post
I recently reinstalled slack 14.2. Trying to recreate the slackbuilds I use, including libreoffice and scilab, I run into a wall because there simply ARE NO MORE 'jdk' suites. Oracle has gone to other frameworks. This means several slackbuild scripts simply no longer work, because the 'jdk' slackbuild fails.
What version of the JDK are you attempting to package? That's rather important to know.
 
Old 12-19-2018, 03:40 AM   #10
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,567

Rep: Reputation: Disabled
BTW, as a side note, Oracle will continue to support java 8 until january 2019, then it will stop and move on the upper, somewhat incompatible, versions.

but, and this is a pretty recent development, seems like Amazon will step in providing a long term support java distribution compatible with java 8

https://aws.amazon.com/corretto/
 
Old 12-19-2018, 11:48 AM   #11
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Posts: 472

Rep: Reputation: 165Reputation: 165
Hmm, OP is silent
 
Old 01-06-2019, 12:51 PM   #12
jrch
Member
 
Registered: Mar 2006
Posts: 43

Original Poster
Rep: Reputation: 1
Well, sorry for my absence. That was rude but unavoidable.

I am trying to build the current download for 'libreoffice' SBo, which requires 'jdk' SBo (jdk 8u192). In the past this has worked for me, but I was not smart enuf to save the jdk source before reinstalling Slack 14.2. Now, despite all the attempts at help (thank you), I still cannot get Oracle to permit a download. I am (and have been) well aware of the Oracle 'download agreement', but I have been unable to even find a place to 'accept the license agreement'.

Referring to bassmadrigal's helpful post below, I must be ignorant, but I cannot find any 'link' on SBo that leads to the 'Accept License Agreement' 'radio button'. When I substitute the path below, it just gives me an Oracle page, with no apparent links or buttons as described. It lists a bunch of 'jdk download links', and all they do is pop up a page with NO SUCH RADIO BUTTON, and no hints that I can see. Just an empty dialog box.

All of this is what I experienced late in 2018, and has not changed as of Jan 6, 2019.

I'm reluctant to get into the 'openJdk' SBo build, which quotes a processing time of '2 hours', and am unwilling to go thru that knothole just to find out it failed.

I am thankful for the suggestions, but I cannot make them work. The 'direct download' from Oracle mentioned in one reply just goes to the same empty page.

If anyone can see what simple dufuss error I am making (wouldn't be the first time!), I would be most grateful to have it pointed out.

Thanks to all who took the trouble to help.

jrch


Quote:
Originally Posted by bassmadrigal View Post
Did you read the README for jdk? The key thing is:

Code:
*******************************************************************************
* YOU MUST AGREE TO ORACLE'S DOWNLOAD AGREEMENT BEFORE YOU CAN DOWNLOAD THE   *
* JDK BINARY PACKAGE FROM THEM.  THIS MEANS THAT YOU HAVE TO USE SOME SORT OF *
* WEB BROWSER, E.G. FIREFOX, TO DOWNLOAD IT. LINKS, WGET, ET AL WILL NOT WORK *
*******************************************************************************
You can't use automated tools to build jdk because Oracle requires you to agree to its license terms before you can download it. This causes all automated tools to fail to download it, which will cause them to fail to build it (which then causes that cascade failure you mentioned).

I just checked, and the download still works fine. You can go to Oracle's site by visiting the Homepage link on SBo, then select JDK8 downloads, then click on the "Accept License Agreement" radio button and finally, click your download link (64bit and 32bit -- these links won't work until the license agreement is accepted). You can then either save the file to your automated tool's source directory or manually run the SlackBuild to generate the package.
 
Old 01-06-2019, 01:43 PM   #13
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,149

Rep: Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515Reputation: 1515
Go to https://www.oracle.com/technetwork/j...s-2133151.html

Look for Click image for larger version

Name:	click_here.jpg
Views:	21
Size:	90.4 KB
ID:	29409 and click the round thingy pointed to by the green arrowish thing I drew.

Then click the filename that you want to download.

EDIT: I simply googled "jdk 8 download" to find the above link. It wouldn't surprise me if Oracle moved the url at intervals.

Last edited by Richard Cranium; 01-06-2019 at 01:44 PM.
 
Old 01-06-2019, 02:01 PM   #14
Skaendo
Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 818

Rep: Reputation: Disabled
Also make sure that you have javascript enabled in your browser. I had to allow "oracle.com" through NoScript to see the downloads.

Otherwise this is all you will see:
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2019-01-06 12-56-12.png
Views:	11
Size:	66.2 KB
ID:	29410  

Last edited by Skaendo; 01-06-2019 at 02:03 PM.
 
Old 01-06-2019, 02:43 PM   #15
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,633

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
There are also ways around the license when using wget... but I don't know if they'd be encouraged on the forum.

I did search for "download jdk with wget" on google and the first result was a stackoverflow page that provided the correct info to do it.
 
  


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] Installed latest jdk from slackbuilds, but browser can't see it in plugins irgunII Slackware 4 05-21-2013 07:04 PM
openjdk-6-jdk vs official JDK? davidstvz Debian 3 09-22-2010 03:06 PM
jdk-6u10-docs.zip jdk-6u10-docs-ja.zip CJohnsonK General 1 08-15-2010 10:38 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 12:17 PM
32 bit JDK vs 64 bit JDK paragkalra Linux - Software 4 11-28-2007 06:36 AM

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

All times are GMT -5. The time now is 05:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration