Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-22-2005, 10:24 AM   #1
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,
Old 03-22-2005, 10:27 AM   #2
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
java -version
Old 03-22-2005, 10:36 AM   #3
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
rpm -qa | grep jre

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


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

All times are GMT -5. The time now is 10:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration