LinuxQuestions.org
Help answer threads with 0 replies.
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-30-2013, 04:56 PM   #1
wufo
Member
 
Registered: Oct 2004
Posts: 160

Rep: Reputation: 15
installing jdk 7u45 problems


I am trying to install jdk 7u45 on my 32bit 14.1.
I downloaded jdk-7u45-linux-i586.tar.gz from Oracle and then followed the directions on http://www.unixmen.com/install-java-slackware-14-1 go to http://mirrors.slackware.com/slackwa...a/source/java/ and get the listed files.

I then followed the directions and in jdk.Slackbuild changed the version number to 7u45.

Then did
SOURCETGZ="$CWD/jdk-7u45-linux-i586.tar.gz"

But, then this happened
bash-4.2$ ./jdk.SlackBuild jdk-7u45-linux-i586.tar.gz
sh: /home/wufo/java/jdk-7u45-linux-i586.bin: No such file or directory

Well yes, it doesn't exist.

tj
 
Old 12-30-2013, 05:03 PM   #2
ljb643
Member
 
Registered: Nov 2003
Posts: 271

Rep: Reputation: Disabled
I don't know if this will help, but Java downloads used to be available as a self-extracting shell archive with a name ending in ".bin". I think that stopped with Java 6, and starting with Java 7 the only downloads are compressed tar archives, .tar.gz files. Perhaps you are using instructions or scripts from Java 6 but are trying to install Java 7.
 
Old 12-30-2013, 05:06 PM   #3
wufo
Member
 
Registered: Oct 2004
Posts: 160

Original Poster
Rep: Reputation: 15
Very possible.

So, how do I do it now?

tj
 
Old 12-30-2013, 05:07 PM   #4
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,878

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Why not simply use the official slackbuild?

Download everything here...

Code:
ftp://ftp.osuosl.org/pub/slackware/slackware-current/extra/source/java/

(Or from same path on your install media...)
Put the Oracle tar.gz in the directory, adjust version if necessary and run the slackbuild.

Then install the resulting package with:

Code:
installpkg /tmp/jdk...gz
...done.

Last edited by astrogeek; 12-30-2013 at 05:27 PM.
 
Old 12-30-2013, 05:08 PM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,564
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
Quote:
Originally Posted by wufo View Post
I am trying to install jdk 7u45 on my 32bit 14.1.
I downloaded jdk-7u45-linux-i586.tar.gz from Oracle and then followed the directions on http://www.unixmen.com/install-java-slackware-14-1 go to http://mirrors.slackware.com/slackwa...a/source/java/ and get the listed files.

I then followed the directions and in jdk.Slackbuild changed the version number to 7u45.

Then did
SOURCETGZ="$CWD/jdk-7u45-linux-i586.tar.gz"

But, then this happened
bash-4.2$ ./jdk.SlackBuild jdk-7u45-linux-i586.tar.gz
sh: /home/wufo/java/jdk-7u45-linux-i586.bin: No such file or directory

Well yes, it doesn't exist.

tj
Have a look at the instructions at the Slackware Documentation Project
http://docs.slackware.com/howtos:software:java
 
Old 12-30-2013, 05:19 PM   #6
55020
Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 369
Blog Entries: 4

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Quote:
Originally Posted by wufo View Post
Ignore the advice on that page. It is horrible. There is absolutely no need to edit Patrick's SlackBuild.

Just re-get a new copy of the SlackBuild and follow Patrick's README file, from the same place where you got the SlackBuild.
 
Old 12-30-2013, 05:33 PM   #7
wufo
Member
 
Registered: Oct 2004
Posts: 160

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by astrogeek View Post
Why not simply use the official slackbuild?

Download everything here...

Code:
ftp://ftp.osuosl.org/pub/slackware/slackware-current/extra/source/java/

(Or from same path on your install media...)
Put the Oracle tar.gz in the directory, adjust version if necessary and run the slackbuild.

Then install the resulting package with:

Code:
installpkg /tmp/jdk...gz
...done.
Bingo, I went to slackbuilds, but searched on java, not jdk, so I didn't find it.

Anyway, its built now.

tj
 
Old 12-30-2013, 05:44 PM   #8
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,878

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Quote:
Originally Posted by wufo View Post
Bingo, I went to slackbuilds, but searched on java, not jdk, so I didn't find it.

Anyway, its built now.

tj
Note that the URL is not on Slackbuilds.org, it is in the official Slackware distribution sources. Slackware can no longer include the package due to Oracle licensing changes, but it still includes the build script just as it would be used to build the distribution package otherwise.

Glad you got it installed!
 
  


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
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
installing jdk tannu_ah Linux - Newbie 5 11-17-2008 03:14 PM
I have problems with JDK help me please ! megaprog Debian 5 09-10-2006 12:41 AM
Installing Sun JDK naiveguy Linux - General 2 04-17-2006 02:15 PM
installing JDK on Slackware pogopogo Linux - Newbie 3 10-19-2004 02:33 AM


All times are GMT -5. The time now is 05:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration