[2025-jun-17] The SlackDocs mailing lists at https://lists.alienbase.nl/mailman/listinfo have been retired. No one has been using these lists for years and it's time to say goodbye. The list archives remain available at https://scalzi.slackware.nl/mailman/listinfo/slackdocs
[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.
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> |