[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
howtos:software:java [2012/09/26 03:01 (UTC)] – moved from the general howtos namespace mfillpot | howtos:software:java [2014/11/08 12:39 (UTC)] (current) – [Java not found after installation] fix typo in name of profile.d bormant | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
====== Java in Slackware ====== | ====== Java in Slackware ====== | ||
Line 15: | Line 14: | ||
<note important> | <note important> | ||
- | ===== Java (JDK) Installation on Slackware 14 ===== | + | ==== Java (JDK) Installation on Slackware 14 and newer ==== |
Follow the steps below to install Java on your system: | Follow the steps below to install Java on your system: | ||
Line 38: | Line 37: | ||
< | < | ||
- | 5. Go to the ''/ | + | 5. Go to the ''/ |
6. Run the java SlackBuild specifying the path to the downloaded Java binary package. | 6. Run the java SlackBuild specifying the path to the downloaded Java binary package. | ||
Line 56: | Line 55: | ||
8. Restart a web browser and try if Java has been detected by visiting the following [[http:// | 8. Restart a web browser and try if Java has been detected by visiting the following [[http:// | ||
- | 9. You may need to reboot the computer for the system to recognise | + | 9. You may need to reboot the computer for the system to recognize |
< | < | ||
Line 62: | Line 61: | ||
10. If you want [[slackware: | 10. If you want [[slackware: | ||
+ | |||
+ | |||
+ | ===== OpenJDK ===== | ||
+ | |||
+ | If you prefer the fully Open Source alternative of OpenJDK instead of Oracle' | ||
+ | |||
+ | If you decide you want to use OpenJDK, the same rules apply that were written above for the Oracle Java packages: //only install one of the two, either JRE or JDK!// | ||
+ | If you want a web-browser plugin like Oracle' | ||
+ | |||
+ | If you decide you want to compile OpenJDK from source, then use the [[http:// | ||
+ | |||
+ | |||
+ | ===== Java not found after installation ===== | ||
+ | |||
+ | Help! I installed Java but when I try to use it, I get " | ||
+ | |||
+ | What you need to know is that the Java package installs two files in your profile directory "''/ | ||
+ | |||
+ | Here follows the content of such a script on 64-bit Slackware: < | ||
+ | #!/bin/sh | ||
+ | export JAVA_HOME=/ | ||
+ | export MANPATH=" | ||
+ | export PATH=" | ||
+ | </ | ||
+ | . / | ||
+ | </ | ||
+ | |||
+ | |||
====== Sources ====== | ====== Sources ====== | ||
* Original source: [[http:// | * Original source: [[http:// | ||
* Contributions by [[wiki: | * Contributions by [[wiki: | ||
- | + | | |
- | + | ||
- | < | + | |
<!-- Please do not modify anything below, except adding new tags.--> | <!-- Please do not modify anything below, except adding new tags.--> | ||
- | <!-- You must also remove the tag-word " | ||
{{tag> | {{tag> |