LinuxQuestions.org
Review your favorite Linux distribution.
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 03-22-2005, 09:24 AM   #1
texjauto1
LQ Newbie
 
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
How do I tell what version of Java I have


I need to know if I have JDK or JRE installed on my SuSe box. I am running 9.2 professional.

Once I deermine wihich is my compiler, how do I tell what version it is?

Thank you,
Jim
 
Old 03-22-2005, 09:27 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Code:
java -version
 
Old 03-22-2005, 09:36 AM   #3
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
The simple first:
you can determine your default Java version with the following command:

"java -v"

If you have a JDK installed you should have a "javac" (JavaCompiler) also.

You should be aware that it is very easy (and sometimes convenient) to have multiple Java JRE and JDK Versions installed.

Another way is to use BASH and you RPM database:

rpm -qa | grep jdk
or
rpm -qa | grep jre

Which will show installed packages with jdk or jre in the package name
 
  


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
Java Version Wierness PerfectReign SUSE / openSUSE 7 05-16-2005 09:25 AM
java -version !!! ???? cherokee10 Linux - Newbie 4 02-07-2005 09:21 AM
which version of java for mozilla 1.4 joe6pack Mandriva 2 04-05-2004 09:37 PM
Java 2 Plug-in Version 1.3 mvp Linux - Software 11 11-11-2003 10:25 AM
What version of Java comes with Linux? CodeWarrior Linux - Software 5 05-13-2003 03:17 AM


All times are GMT -5. The time now is 04:18 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration