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.
Hi, I've downloaded both packages from here (http://www.slackware.com/~alien/slac...dk/pkg64/14.1/), tried both and, together or not, when I try to run java it says 'command not found', can't run java applets on firefox either.
The package installer frequently puts the necessary java executables in an odd place outside the normal path.
On a 32-bit system the executables jar, java, javac tend to end up in /usr/lib/java/bin, but function normally once symlinked to /usr/bin, where programs can find them. I suspect something similar is the case in your 64-bit system. Try finding where the necessary executables have landed and symlinking them to a more normal directory in your path like /usr/bin
Ok, recompiled openjdk and icedtea. Got the java plugin but still no java (it is not on /usr/lib/java/bin). That is odd because before reinstalling my system I installed openjdk before and everything worked.
The openjdk package (just like Slackware's own jdk package by the way) installs a profile script in /etc/profile.d/ which expands your PATH and MANPATH variables and sets a new JAVA_HOME variable. You have to logout and login again if you want to make that script effective.
Perhaps your original issues were caused by not having logged on again. The java binaries are in the directory which is added to the PATH.
The openjdk package (just like Slackware's own jdk package by the way) installs a profile script in /etc/profile.d/ which expands your PATH and MANPATH variables and sets a new JAVA_HOME variable. You have to logout and login again if you want to make that script effective.
Perhaps your original issues were caused by not having logged on again. The java binaries are in the directory which is added to the PATH.
Eric
It is probably that because I didn't do anything special and it started working.
EDIT: So, is Slackware bringing the Windows way of solving things to the Linux world?
Last edited by moisespedro; 01-02-2014 at 08:35 AM.
It is probably that because I didn't do anything special and it started working.
EDIT: So, is Slackware bringing the Windows way of solving things to the Linux world?
Wow, such a display of ignorance and insult...
If you think logging off and on again is too Window-ish then all you have to do is execute the following command in your console
Code:
source /etc/profile
to get the same effect (PATH and MANPATH updated and a new JAVA_HOME variable in your environment).
Naturally, this works for that specific console only. If you are running a X desktop like KDE, XFCE or similar and you want to have it working for every terminal window and all other apps, then you'll have to logout and login again, that is how the login profile works.
But then, since you escaped from MS Windows in the first place I expect that you are now sitting behind your console, not running X Window. My suggestion will work for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.