LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to install Java 7 in Slackware 13.37? (https://www.linuxquestions.org/questions/slackware-14/how-to-install-java-7-in-slackware-13-37-a-4175420667/)

Laxman_prodigy 08-06-2012 11:06 AM

How to install Java 7 in Slackware 13.37?
 
Hi.
Just downloaded the source.tar.gz from the Oracle webpage. But, how do I install it? The instructions over there say, its a bin file but it isn't. Any help would be appreciated.

Edit: Please have mercy on me, I am quite a newbie to Slackware. Detailed how-to or info if any, somewhere would be helpful and much appreciated.

allend 08-06-2012 11:23 AM

This is the README from the /extra/java in Slackware-current
Quote:

This is a SlackBuild that will repackage Oracle Java into a package that
can be easily installed, upgraded, or removed using Slackware's native
package management tools.

To use it, you'll need Oracle's JDK or JRE package for Linux. Get the
appropriate version for your architecture, either 32-bit i586 or 64-bit
x64. Be sure to get the version that is packaged as a .tar.gz!

Then, run the script like this:

./java.SlackBuild /tmp/jre-7u5-linux-x64.tar.gz

A Slackware txz package will be created in /tmp. Install or upgrade it
with a command like this one (adjust for jdk or jre, arch, and version):

upgradepkg --install-new jre-7u5-x86_64-1.txz

414N 08-06-2012 11:30 AM

Well, seems you downloaded the source archive. You need to compile that but it's a long and tedious process.
You could use Alien's OpenJDK packages.

Laxman_prodigy 08-06-2012 01:10 PM

Hey, thanks guys. I'll check that out.

Bazzaah 08-06-2012 01:29 PM

you could have a look here too

http://www.linuxquestions.org/questi...-a-4175418118/


All times are GMT -5. The time now is 05:26 AM.