SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to install Java, I have the link here, and I would like to install it the correct way (using slackpkg). How can I do this? For some reason the files I am trying to download aren't on my Slackware installation disk.
I am trying to install Java, I have the link here, and I would like to install it the correct way (using slackpkg). How can I do this? For some reason the files I am trying to download aren't on my Slackware installation disk.
I don't use slackpkg so I'm not sure if you can "point" it to the /extra directory. But you could just use wget?
For some reason the files I am trying to download aren't on my Slackware installation disk.
And what version of Slackware is your installation disk?
I'm sure you can notice that the version in /extra is extremely old. It would not be advisable to install this version. As much as it is noble for you to want to attempt to install Java in the time-honoured method, I believe the time-honoured method is not suitable in this case. It may be better to install one of these versions of openjdk instead:
And what version of Slackware is your installation disk?
I'm sure you can notice that the version in /extra is extremely old. It would not be advisable to install this version. As much as it is noble for you to want to attempt to install Java in the time-honoured method, I believe the time-honoured method is not suitable in this case. It may be better to install one of these versions of openjdk instead:
extra/java doesn't contain the actual Java binary. Only the java.SlackBuild to repackage the binary, scripts to populate the environment, etc. You would have to download the binary from Oracle's site. FWIW I used the java.SlackBuild from extra/java to install the latest JDK: jdk-12.0.2_linux-x64_bin.tar.gz and it installed fine. I then wrote a small "hello world" program in Java, compiled it and ran it without problems.
The only thing is if the OP wants to do it this way on 32-bit, the last 32-bit version I could find on Oracle's site is EOL and requires an account to download. So, openJDK could be the better way to go.
I don't have much experience with Java besides what I wrote above, so if I missed something I apologize.
extra/java doesn't contain the actual Java binary. Only the java.SlackBuild to repackage the binary, scripts to populate the environment, etc. You would have to download the binary from Oracle's site. FWIW I used the java.SlackBuild from extra/java to install the latest JDK: jdk-12.0.2_linux-x64_bin.tar.gz and it installed fine. I then wrote a small "hello world" program in Java, compiled it and ran it without problems.
The only thing is if the OP wants to do it this way on 32-bit, the last 32-bit version I could find on Oracle's site is EOL and requires an account to download. So, openJDK could be the better way to go.
I don't have much experience with Java besides what I wrote above, so if I missed something I apologize.
Whenever I try this, the script gets stuck at the line "usr/mime", I have no idea what it's doing/trying to do, but that's the last thing it outputs before it just freezes.
Whenever I try this, the script gets stuck at the line "usr/mime", I have no idea what it's doing/trying to do, but that's the last thing it outputs before it just freezes.
Not sure. Unfortunately, like I said above, I don't have much experience working with Java. Everything worked fine for me on a 64-bit system.
From the link you provided in your original post I'm guessing you're wanting to install JDK on 32-bit system? Did you try and install the latest JDK, the one I mentioned? That one is only for 64-bit. If you try to install that on a 32-bit system, it should install fine, but you will get a run-time error.
If you're determined to do it this way you'll have to install a 32-bit version of JDK:
But you have to sign up for an account first before you can download it.
It's probably easier to go with Lysander666's suggestion and install openJDK. When you open that link click on 'parent directory' then 'pkg' to access the 32-bit versions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.