LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-10-2016, 06:37 PM   #1
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 15.0, Slackware 14.2_x64, Slackware 14.1 x86
Posts: 612

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
jdk builds and installs but doesn't work?


I just built and installed (thrice) jdk trying to get java to work on this newly installed 14.2 x86 system. When I try to start (for example) OpenOffice Writer, nothing happens and I see a complaint (in konsole) about no java.

This is one of those things I've *never* had go wrong since I started using Slackware. The jdk 'just worked'. I've logged out and back in, even rebooted, but nothing is getting the system to see it has java now.

Any ideas? (I honestly don't have the time to try and build 'openjdk' since this is just an AMD Athlon II X2 250 and will take all weekend to build and mom's gotta be able to use this thing while I'm not here)
 
Old 09-10-2016, 06:45 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
What does
Code:
echo $JAVA_HOME
output? If that seems sane, how about
Code:
$JAVA_HOME/bin/java -version
?
 
Old 09-10-2016, 09:07 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
How did you build it? When it is finished, there should be a file in your /etc/profile.d/ (since I use Eric's openjdk package, it is called openjdk.sh -- I'm guessing the regular one would just be jdk.sh) and it should be executable. It is what is used to set the PATH for java and a few other environment variables. Do you have that file and is it executable?

Just for reference, your java executable should be /usr/lib{64}/java/bin/java. If you can run that file manually, then it just means your environment variables aren't set up. If you can't run it, then something else has gone wrong with the installation.
 
Old 09-11-2016, 07:03 AM   #4
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 15.0, Slackware 14.2_x64, Slackware 14.1 x86
Posts: 612

Original Poster
Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
@Richard - Here's what I got back with those commands and they both look correct(?):

Code:
bash-4.3$ echo $JAVA_HOME
/usr/lib/java
bash-4.3$ $JAVA_HOME/bin/java -version
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) Server VM (build 25.102-b14, mixed mode)
As for what bassmadrigal brought up, I have the /usr/lib/javaxxx *and* a /usr/lib/jdkxxx. The /usr/lib/jdkxxx is exactly the same as the java but it's has a link arrow on it. It seems maybe it's not sending commands to the java that's supposed to be used...does that sound like it makes sense? If I want to make it link myself, should I make it a sym; hard; or redirect link (those are the choices I'm given when I use krusader, my file manager of choice)?
 
Old 09-11-2016, 07:42 AM   #5
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 15.0, Slackware 14.2_x64, Slackware 14.1 x86
Posts: 612

Original Poster
Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
This is what happens when one is tired as can be, sweating all over the keyboard after working outside in 90 degree weather and 90% humidity...I'd installed jdk just fine, but forgot it was a copy of the jdk for *MY* system - which is x86_64.

I downloaded the correct jdk this time, did the rpm2tgz thing installed all of those tgz's and all is well now.

Sorry for the mixup and wasting anyones time and thanks too for the help anyway.
 
  


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
[SOLVED] What is the fedora program that automatically installs jdk and other things? szboardstretcher Linux - Software 2 07-29-2012 07:14 PM
Make DESTDIR=../builds install doesn't work binarybob0001 Linux - Software 1 10-29-2007 02:01 AM
ndiswrapper suse 10.1 installs but doesn't work -swimmer- Linux - Wireless Networking 5 06-23-2006 09:09 PM
¿Why RPM installs doesn't work on my red hat 9 linux system? Corlinux Linux - Software 8 04-05-2004 06:13 PM
RPM installs, but doesn't keegan Linux - Software 6 01-06-2004 11:49 AM

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

All times are GMT -5. The time now is 02:41 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