Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-01-2014, 09:17 PM
|
#1
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep: 
|
Installed openjdk but no java?
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.
|
|
|
01-01-2014, 09:51 PM
|
#2
|
Member
Registered: May 2002
Posts: 100
Rep:
|
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
|
|
1 members found this post helpful.
|
01-01-2014, 10:00 PM
|
#3
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep: 
|
I am following a tutorial I've found and I am recompiling it, hope it works
|
|
|
01-01-2014, 10:53 PM
|
#4
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep: 
|
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.
|
|
|
01-01-2014, 11:04 PM
|
#5
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
Icedtea-web plugin is installed to /usr/lib(64)/mozilla/plugins directory.
|
|
|
01-01-2014, 11:05 PM
|
#6
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep: 
|
Quote:
Originally Posted by ReaperX7
Icedtea-web plugin is installed to /usr/lib(64)/mozilla/plugins directory.
|
icedtea is working, what is not working is java (when I try to run it on a terminal)
EDIT: As strange as it didn't work, now it is working.
PS: This thread was worthless, nobody learnt nothing lol I have no idea how it is working now.
Last edited by moisespedro; 01-01-2014 at 11:08 PM.
|
|
|
01-02-2014, 07:46 AM
|
#7
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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
|
|
|
01-02-2014, 09:33 AM
|
#8
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep: 
|
Quote:
Originally Posted by Alien Bob
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 09:35 AM.
|
|
|
01-02-2014, 10:00 AM
|
#9
|
Member
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 865
|
Quote:
Originally Posted by moisespedro
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? 
|
Logging out and back in again is not the same as rebooting your whole system. Most things can be done in Linux without rebooting.
|
|
|
01-02-2014, 11:09 AM
|
#10
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Quote:
Originally Posted by moisespedro
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.
Eric
|
|
|
01-03-2014, 11:59 AM
|
#11
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Original Poster
Rep: 
|
Jesus Christ people, no need to react that way. I didn't mean to offend nobody, it was just a joke (I even put a "  " in the end to make it clear).
Last edited by moisespedro; 01-03-2014 at 12:03 PM.
|
|
|
All times are GMT -5. The time now is 09:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|