LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   installing jdk 7u45 problems (http://www.linuxquestions.org/questions/slackware-14/installing-jdk-7u45-problems-4175489633/)

wufo 12-30-2013 04:56 PM

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

ljb643 12-30-2013 05:03 PM

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.

wufo 12-30-2013 05:06 PM

Very possible.

So, how do I do it now?

tj

astrogeek 12-30-2013 05:07 PM

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.

sycamorex 12-30-2013 05:08 PM

Quote:

Originally Posted by wufo (Post 5089274)
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

55020 12-30-2013 05:19 PM

Quote:

Originally Posted by wufo (Post 5089274)

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.

wufo 12-30-2013 05:33 PM

Quote:

Originally Posted by astrogeek (Post 5089280)
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

astrogeek 12-30-2013 05:44 PM

Quote:

Originally Posted by wufo (Post 5089290)
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!


All times are GMT -5. The time now is 02:56 AM.