LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Java (http://www.linuxquestions.org/questions/slackware-14/java-4175441814/)

Bazzaah 12-17-2012 03:38 PM

Java
 
Hi

I followed this guide

http://docs.slackware.com/howtos:software:java

to install Java and all goes well until I run

Code:

$ which java
when I get

Code:

which: no java in (/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin:.)
Should I be adding a directory to $PATH as well? Puzzled as to what's going wrong as the isntallation of the .txz file seemed to work.

Thanks in advance for any help.

TobiSGD 12-17-2012 03:43 PM

Did you log out and in again to update the environment variables?

Bazzaah 12-17-2012 03:46 PM

yes I did.

smallpond 12-17-2012 03:57 PM

I think given Oracle's lack of interest in giving away things for free, and their slowness in releasing security fixes, you should really be looking at one of the alternative javas. On Fedora I'm running OpenJDK which, thanks to RedHat, is a pretty complete runtime.

Alien Bob 12-17-2012 04:58 PM

Quote:

Originally Posted by smallpond (Post 4851163)
I think given Oracle's lack of interest in giving away things for free, and their slowness in releasing security fixes, you should really be looking at one of the alternative javas. On Fedora I'm running OpenJDK which, thanks to RedHat, is a pretty complete runtime.

If you want OpenJDK on Slackware, then that is easily accomplished by downloading and installing either the JDK or the JRE from http://connie.slackware.com/~alien/slackbuilds/openjdk/

Eric

Bazzaah 12-17-2012 05:49 PM

Quote:

Originally Posted by Alien Bob (Post 4851200)
If you want OpenJDK on Slackware, then that is easily accomplished by downloading and installing either the JDK or the JRE from http://connie.slackware.com/~alien/slackbuilds/openjdk/

Eric

Thanks Eric.

I have Java now.


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