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.
Hello and thank you for taking the time to look at my thread.
The problem I'm having is that I can't for the life of me seem to install the Java Development Kit system-wide. Now, I don't usually use an account other than root and decided it was time to change that. Thus, due to my lack of experience in said subject, I have no clue how to go about installing programs for more than just root.
I pulled the program in question (jdk-7u45-linux-x64) off of slackbuilds.org as per the usual and installed it. However, I can't figure out how to get it to show up under the user account I created a few hours ago (tells you how new to the whole "user" thing I am).
Any help would be greatly appreciated. If you have any more questions about my setup, please feel free to ask.
if you installed the resulting slackbuilds.org package via installpkg or upgradepkg --install-new, it should be fine. If you open a terminal as user and type, e.g., `javac' or java, does it return `command not found'? I *think* the relevant files in /etc/profile.d should load and set up PATH properly with a default account, if not check if a file like /etc/profile.d/openjdk.sh is executable (I use Alien BOB's openjdk, which installs an openjdk.csh and openjdk.sh file).
if you installed the resulting slackbuilds.org package via installpkg, it should be fine. If you open a terminal as user and type, e.g., `javac' or java, does it return `command not found'? I *think* the relevant files in /etc/profile.d should load and set up PATH properly with a default account.
lems
lems:
Thanks for the reply.
It does indeed return `command not found`. I looked into the scripts in /etc/profile.d and there is indeed a jdk.sh file that points to the right dirs, but it doesn't seem to be loading on this account. How odd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.