LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-17-2014, 04:54 AM   #1
prasan89na
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Rep: Reputation: Disabled
Installing JDK in Slackware


I have downloaded jdk-8u20-linux-i586.tar.gz and extracted using:
tar -xzvf jdk-8u20-linux-i586.tar.gz
Now I'm confused what to do after that.
 
Old 09-17-2014, 05:09 AM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733
1. Go to http://slackbuilds.org/repository/14.1/development/jdk/

and download the SlacKBuild for jdk.

2. Once that is saved on your harddrive (assume it is in your home dir), untar it:

tar xvf jdk-7u67-linux-i586.tar.gz
cd jdk-7*gz

3. Bring in the archive file that you have:

mv /path/to/jdk-8u20-linux-i586.tar.gz .


4. Now alter the version that you want to install

sed -i 's/7u67/8u20/g' jdk.SlackBuild


5. And finally, make the SlackBuild executable and execute:

chmod +x jdk.SlackBuild
./jdk.SlackBuild

6. And then install:

su -c "installpkg /tmp/jdk*8u20*t?z"

That is all.
 
Old 09-17-2014, 05:14 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Blog Entries: 61

Rep: Reputation: Disabled
Or read this:
http://docs.slackware.com/howtos:software:java
 
2 members found this post helpful.
Old 09-17-2014, 07:59 AM   #4
prasan89na
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
after ./jdk.SlackBuild

after doing ./jdk.SlackBuild the output is:
mv: cannot stat 'jdk1.7.0_20': No such file or directory
 
Old 09-17-2014, 03:41 PM   #5
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733
I actually like brianL's answer better, but just to correct my own:

you also need to sed the version number:
sed -i 's/7u67/8u20/g' jdk.SlackBuild
sed -i 's/1.7.0_/1.8.0_/g' jdk.SlackBuild


But brianL's solution is better; I forgot there was a SlackBuild for it in /extras. You ought to use that.
 
1 members found this post helpful.
Old 09-18-2014, 08:25 AM   #6
prasan89na
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Successfully installed java but firefox browser is not configured correctly. I tried which java in terminal the output is:
bash-4.2$ which java
which: no java in (/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/kde4/libexec:/usr/lib/qt/bin:/usr/share/texmf/bin)

---------- Post added 09-18-14 at 07:25 AM ----------

Successfully installed java but firefox browser is not configured correctly. I tried which java in terminal the output is:
bash-4.2$ which java
which: no java in (/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/kde4/libexec:/usr/lib/qt/bin:/usr/share/texmf/bin)
 
Old 09-18-2014, 10:10 AM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,604

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
use:
Code:
source /etc/profile.d/jdk.sh
Or logout and login again
 
Old 09-19-2014, 02:23 AM   #8
prasan89na
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
activating java plugin in firefox

How to activate java plugin in firefox. I tried to activate it under tools > add-ons > plugins but java is not listed there.
 
Old 09-20-2014, 03:50 PM   #9
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733
I've looked around and cannot seem to find a Java application on the internet to test against. Probably just not looking in the right place.

Anyway, maybe see if java.com can see that you have Java installed:
https://java.com/en/download/install...tect=jre&try=1

and also try these steps to selectively enable Java in Firefox:
https://support.mozilla.org/en-US/kb...-trusted-sites
 
  


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] What is wrong with using JDK in Slackware 14.1 jjthomas Slackware 5 02-23-2014 10:11 AM
installing jdk tannu_ah Linux - Newbie 5 11-17-2008 04:14 PM
installing JDK on Slackware pogopogo Linux - Newbie 3 10-19-2004 03:33 AM
installing jdk-1_5_0-linux on slackware 10.0 xmeson Linux - Software 1 10-03-2004 11:01 PM
Slackware 10 + jdk 1.5 jorge.vargas Slackware 3 07-16-2004 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:59 AM.

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