LinuxQuestions.org
Register a domain and help support LQ
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 02-18-2013, 05:55 PM   #1
A.Slacker
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
A question about Java on Slackware 64 bit


As per the instructions I've downloaded the newest verions of the jke (currently version jdk-7u13-linux-x64.tar.gz).

Followed the instructions without problem and everything installs correctly. However even after a reboot it will not find java when I type "which java".

I have gone ahead and simply added /usr/lib64/java/bin to my /etc/profile file and this resolved the issue.

I had two questions: I'm assuming the reason it's not being properly added has something to do with the java package from oracle. Is this the case and how would I confirm this?

Secondly as someone fairly new to linux are there any inherent risk in adding /usr/lib64/java/bin to my /etc/profile file? Would it have been better to add it to a local .bashrc?

Thanks for any replies

Last edited by A.Slacker; 02-19-2013 at 05:02 PM. Reason: fixed hyperlink
 
Old 02-19-2013, 11:19 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,283

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
The usual way the /etc/profile is handled is that there is /etc/profile.d/ which packages can dump a file in and add it to the profile automatically. This is usually where $PATH adjustments are made. If you uninstall the package, the adjustment comes out again. The sky won't fall in because you made one path adjustment in /etc/profile. But if you subsequently need to change the path, remember it's there.
 
1 members found this post helpful.
Old 02-19-2013, 11:25 AM   #3
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.0
Posts: 537
Blog Entries: 2

Rep: Reputation: 68
Your link isn't working for me.

Did you use the java.SlackBuild as found in the /extra/source/java directory of your installation disk?
 
Old 02-19-2013, 12:34 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,228

Rep: Reputation: Disabled
Quote:
Originally Posted by psionl0 View Post
Your link isn't working for me.

Did you use the java.SlackBuild as found in the /extra/source/java directory of your installation disk?
Correct link is http://docs.slackware.com/howtos:software:java

The cause of the original problem is most likely that A.Slacker downloaded the java.SlackBuild file but not all the rest of the files in that same directory. All the files are needed in order to produce a working Java package.

Eric
 
1 members found this post helpful.
Old 02-19-2013, 04:59 PM   #5
A.Slacker
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
Correct link is http://docs.slackware.com/howtos:software:java

The cause of the original problem is most likely that A.Slacker downloaded the java.SlackBuild file but not all the rest of the files in that same directory. All the files are needed in order to produce a working Java package.

Eric
Hey Alien Bob, you are correct. I only copied the java.Slackbuild file but not all the rest of the files from the same directory. I did not see the remark indicating that you needed to copy all the files from the directory.

Thanks for taking the time to answer and for the fix!

A.Slacker

Last edited by A.Slacker; 02-19-2013 at 05:01 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cant get 32 bit java extension to work on 64 bit java on OpenSUSE g_rocket Linux - Software 6 09-07-2012 03:39 PM
[SOLVED] Java plugin does not work with 64 bit debian Lenny, 32 bit Mozilla 3.6.8, java 1.6_20 Drew Eckhardt Debian 1 02-15-2011 12:24 PM
Sun Java Question for OpenSuse 32 or 64 Bit walla299 Linux - Software 2 04-25-2010 07:45 PM
LXer: Howto install Flash, Java, Real Player 32 bit plugins under 64 bit Firefox LXer Syndicated Linux News 0 03-16-2007 11:31 PM
Kinda stupid question - slackware & 64-bit processors mmarkvillanueva Slackware 14 10-26-2005 01:48 AM


All times are GMT -5. The time now is 04:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration