10-10-2007
Unlike Windows, there is no standard way to find out if java is installed on your machine unless ofcourse /usr/bin/java points to GNU java or the SUN java.
You can, at best, look into the environment variables LD_LIBRARY_PATH and PATH to see whether you have a JAVA related path in those env variables.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hey ,
Anyone knows command to find when Linux OS is installed?
Date and time? (2 Replies)
Discussion started by: crackthehit007
2 Replies
2. Linux
Hi.
Here's my setup:
a workstation with an X server
a CentOS server with no X server installed (development, security is not a concern)
a GUI application installed on the server
When I ssh to that machine, I get:
ssh -Xl root 192.168.x.x
Warning: untrusted X11 forwarding setup... (4 Replies)
Discussion started by: flj
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I want to determine whether my java application is pointing to the OS version of Java or the User installed Java version on my Unix box.
I am aware of the "java -version" command, however I am unsure if the version returned is the OS one or the user one.
Please help.
Ali. (5 Replies)
Discussion started by: ali40
5 Replies
4. Red Hat
How do I network a Suse installed machine with other computers, specifically Red hat Linux?
This is for a school project, and I can't find any pages that tell how to network a Suse to other computers except how to use a printer. (1 Reply)
Discussion started by: Anna Hussie
1 Replies
5. Ubuntu
How can I learn what time OS installed time and release information. (4 Replies)
Discussion started by: getrue
4 Replies
6. Red Hat
Hi,
i am trying to grab all the installed packages on linux machine,and only want to grab "Name" "Version" "Release" "Vendor" information
i am using below command to do so :
rpm -qa --info | grep -e 'Name' -e 'Version' -e 'Release' -e 'Vendor'
the output contains lot other info... (3 Replies)
Discussion started by: omkar.jadhav
3 Replies
7. Shell Programming and Scripting
Dear All,
I am planning to find the list of certificates(WEBshpere/MQ) on a servers.
My certificates are either stored in (.jks) / (.pem)/ (.cer) . But some of the certificates are stored without these file formats. I tried using find command but unless I give the file name its difficult for... (4 Replies)
Discussion started by: sidh_arth85
4 Replies
8. Red Hat
Hi,
I am a common user on a linux cluster that has openJDK installed. For a particular software, the vendor asks for Oracle version of java installed.
How can I install the oracle version from my home space where I don't need admin privileges to install?
thanks! (2 Replies)
Discussion started by: pc2001
2 Replies
9. UNIX for Beginners Questions & Answers
Hello Forum,
I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so:
APP=application --version
But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
.
I am trying to find whether Solaris 11 installed on physical server or on VMware/KVM.
I tried uname -a but it's giving only whether i installed on X86 or sparc machine.
I tried prtdiag command but it's giving below information.
command : prtdiag -v |grep "System... (2 Replies)
Discussion started by: sravani25
2 Replies
LEARN ABOUT DEBIAN
linux-version
LINUX-VERSION(1) General Commands Manual LINUX-VERSION(1)
NAME
linux-version - operate on Linux kernel version strings
SYNOPSIS
linux-version compare VERSION1 OP VERSION2
linux-version sort [--reverse] [VERSION1 VERSION2 ...]
linux-version list [--paths]
DESCRIPTION
linux-version operates on Linux kernel version strings as reported by uname -r and used in file and directory names. These version strings
do not follow the same rules as Debian package version strings and should not be compared as such or as arbitrary strings.
compare VERSION1 OP VERSION2
Compare version strings, where OP is a binary operator. linux-version returns success (zero result) if the specified condition is
satisfied, and failure (nonzero result) otherwise. The valid operators are: lt le eq ne ge gt
sort [--reverse] [VERSION1 VERSION2 ...]
Sort the given version strings and print them in order from lowest to highest. If the --reverse option is used, print them in order
from highest to lowest.
If no version strings are given as arguments, the version strings will instead be read from standard input, one per line. They may
be suffixed by arbitrary text after a space, which will be included in the output. This means that, for example:
linux-version list --paths | linux-version sort --reverse
will list the installed versions and corresponding paths in order from highest to lowest version.
list [--paths]
List kernel versions installed in the customary location. If the --paths option, show the corresponding path for each version.
AUTHOR
linux-version and this manual page were written by Ben Hutchings as part of the Debian linux-base package.
30 March 2011 LINUX-VERSION(1)