LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-07-2014, 04:23 AM   #1
fuser312
Member
 
Registered: Nov 2012
Posts: 32

Rep: Reputation: Disabled
Setting up Java in 14.1, its already installed but system won't recognize it.


I followed the usual instruction to install it using java.slackbuild and verified it online here and everything is fine here. I get the message :

"You have the recommended Java installed (Version 8 Update 25)."

But on command line I get the simple error message i.e. java : command not found.

I tried adjusting System Env Variables and Path but got no result.

I appended following lines :

Quote:
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_[xy]
export PATH="$JAVA_HOME/bin:$PATH"
and then updated these settings with :

"source /etc/profile"

But my system still won't recognize Java.
 
Old 11-07-2014, 04:32 AM   #2
Qury
Member
 
Registered: Feb 2004
Location: Naas,IE
Distribution: Slackware
Posts: 212

Rep: Reputation: 184Reputation: 184
Try export PATH="${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
 
Old 11-07-2014, 05:45 AM   #3
fuser312
Member
 
Registered: Nov 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thanks but it didn't helped.

Shall I move to openjdk?
 
Old 11-07-2014, 06:28 AM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
have you logged out?
 
Old 11-07-2014, 07:08 AM   #5
fuser312
Member
 
Registered: Nov 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Yes.

Edit :

Figured it out, I was just being stupid. It was supposed to be /usr/lib/java (and not jvm).

Last edited by fuser312; 11-07-2014 at 08:02 AM.
 
  


Reply

Tags
java, slackware 14.1



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
Adobe flash player 11 installed, but Firefox won't recognize it alibrahem.yasir Linux - Software 2 10-11-2014 03:09 AM
fedora won't find my installed java anotherpenguin Linux - Newbie 1 07-19-2009 08:52 AM
Mozilla won't recognize java plugin matazar42 Linux - Software 6 10-09-2005 11:03 AM
just installed slackware 10 and now it won't recognize my root password Draconian Linux - Newbie 4 08-18-2004 09:51 PM
Mozilla/Netscape won't run while Java installed snatale1 Linux - Newbie 4 09-17-2003 10:07 PM

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

All times are GMT -5. The time now is 06:20 AM.

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