LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2009, 04:23 AM   #1
deelinux
Member
 
Registered: Nov 2009
Posts: 39

Rep: Reputation: 15
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
 
Old 12-02-2009, 04:38 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by deelinux View Post
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
 
Old 12-03-2009, 04:51 AM   #3
deelinux
Member
 
Registered: Nov 2009
Posts: 39

Original Poster
Rep: Reputation: 15
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.
 
Old 12-04-2009, 02:01 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
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...
 
  


Reply



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
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
Runtime.getRuntime().exec("cd") returns java.io.IOException, error 2 in java tatarin Programming 4 03-28-2008 07:42 PM
Java Runtime Boboba Linux - Software 2 01-20-2007 09:44 PM
How can I use Java runtime? annemarietjuhhh Linux - Newbie 8 02-28-2006 02:41 PM
java runtime shariqali Linux - Software 7 09-23-2003 10:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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