LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-01-2014, 08:17 PM   #1
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
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.
 
Old 01-01-2014, 08:51 PM   #2
croxen
Member
 
Registered: May 2002
Posts: 100

Rep: Reputation: 42
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.
Old 01-01-2014, 09:00 PM   #3
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
I am following a tutorial I've found and I am recompiling it, hope it works
 
Old 01-01-2014, 09:53 PM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
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.
 
Old 01-01-2014, 10:04 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Icedtea-web plugin is installed to /usr/lib(64)/mozilla/plugins directory.
 
Old 01-01-2014, 10:05 PM   #6
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by ReaperX7 View Post
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 10:08 PM.
 
Old 01-02-2014, 06:46 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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
 
Old 01-02-2014, 08:33 AM   #8
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by Alien Bob View Post
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.
 
Old 01-02-2014, 09:00 AM   #9
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by moisespedro View Post
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.
 
Old 01-02-2014, 10:09 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by moisespedro View Post
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
 
Old 01-03-2014, 10:59 AM   #11
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
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 11:03 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IBM java vs openjdk dazdaz Linux - Software 1 08-25-2013 03:19 PM
[SOLVED] Both java-1.7.0-openjdk and java-1.6.0-openjdk are installed ?? SharpyWarpy Linux - Software 2 01-16-2013 11:28 AM
LXer: First look at Cinnarch 2012.11.22; OpenJDK versus Oracle Java (DWW #487) LXer Syndicated Linux News 0 12-18-2012 12:01 AM
Yum is not able to locate many packages Ex: java-1.7.0-openjdk ExploreLinuxSrujan Linux - Newbie 3 11-12-2012 10:59 PM
LXer: What does IBM joining OpenJDK mean for Java? LXer Syndicated Linux News 0 10-15-2010 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration