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) |
What does
Code:
echo $JAVA_HOME Code:
$JAVA_HOME/bin/java -version |
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. |
@Richard - Here's what I got back with those commands and they both look correct(?):
Code:
bash-4.3$ echo $JAVA_HOME |
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. |
All times are GMT -5. The time now is 01:20 PM. |