LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Java Runtime (https://www.linuxquestions.org/questions/linux-newbie-8/java-runtime-772911/)

deelinux 12-02-2009 04:23 AM

Java Runtime
 
Hello

I cannot workout if I have java run time installed or not, on my Redhat 5 x64 server.

By checking the RPM packages I can see I have the below java packages, but can anyone tell me if I still need install the java runtime specifically.

java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115
java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5
java-1.4.2-gcj-compat-src-1.4.2.0-40jpp.115
java-1.6.0-openjdk-1.6.0.0-1.2.b09.el5


I have the JRE files from sun, but did not want to cause any issues by installing them before knowing what I'm doing.

jre-6u17-linux-x64.bin
jre-6u17-linux-x64-rpm.bin

Any suggestions would be appriciated

thanks

D

zhjim 12-02-2009 04:38 AM

Quote:

Originally Posted by deelinux (Post 3776818)
java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115
java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5
java-1.4.2-gcj-compat-src-1.4.2.0-40jpp.115
java-1.6.0-openjdk-1.6.0.0-1.2.b09.el5

Let's see. All with gcj are java compilers (gcc = gnu c compiler, gcj = ? ;))
Then we have the openjdk-devel package in forth line. This should be the jdk development package.
fifth line is the source code of the java compiler
Sixth line is the libararies for the openjdk. Which means you have the jdk installed.
To be absolute sure do a
Code:

whereis java
or
Code:

find / -name java
Checking on package name (openjdk) shows that it contains the [B]java[/ B] binary on debian.
Check if this holds true for red Hat witht rpm

Code:

rpm -ql java-1.6.0-openjdk
This should list the files inside the package. Maybe you need to fiddle with the name (or the option after -q).

Cheers Zhjim

deelinux 12-03-2009 04:51 AM

thanks for the info, it got me thinking and I managed to install it without any issue, it turns out JRE was not installed and the one from sun gets installed in the /usr/java/<version> folders, so I followed the instructions from SUN and all is ok now.

zhjim 12-04-2009 02:01 AM

NIce you got it sorted. Just for my peace. Does not the jdk include the jre? I never got my head around the java terminologies...


All times are GMT -5. The time now is 03:59 AM.