How to programatically know version of JVM?

We can JVM version with the command 'java -version'. Is there a way to display this information from within Java code?
TIA,
Byju Joy

See [url http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties()]http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties()

Similar Messages

  • How to install new version of jvm in Oracle?

    We are using Oracle 9i which is internally using jvm ver 1.2.2. It has a bug 'ByteCode Verifier', so we need to replace the jvm's ver with 1.2.2_011. Can someone help me figuring out how we can uninstall the old version of jvm and install the new version as required in the database.(jvm being used for java stored procedures)

    Hello ec:
    Welcome to Apple discussions.
    As far as I know, you cannot download Safari and reinstall it successfully. Install Safari from your software install DVD and then run software update.
    I do not use Hotmail, so I have no information about that platform.
    Barry

  • How can we know version of the database ?

    Hi all,
    How can we know the version of the under lying database ? Please share your ideas.
    Thanks

    Hi,
    Choose System->Status Menu item to open the status window.
    You can see the DB data in the Bottom right.
    Regards
    Karthik D

  • How to programatically get a Java version (Not default one) ?

    Hi, Java Guru,
    Does anyone know how to programatically get a Java verstion through its full path ?
    For example, there are 5 JVM installed on a user's machine:
    JRE1
    JRE2
    JRE3
    JRE4
    JRE5
    How do you know the Java version under JRE3 ?
    From command line, you can simply type
    JRE3/java -version
    But how to programtically ? (I thought about running a system call, then check the standout, but feel it is not reliable, is there any other way to do it ?)
    Thanks in advance.

    No. That is not waht I want. Using System.getProperties() only can get the default Java information.
    Assume there are many Java version installed on a user's machine and we know all java Path.
    JRE1/bin/java
    JRE2/bin/java
    JRE3/bin/java
    JRE4/bin/java
    JRE5/bin/java
    JREn/bin/java
    JREn/bin/java is the latest one installed, that is, default Java.
    I want to know the JRE3 version before I use it, then how do I know JRE3 version PROGRAMTICALLY ?
    Anyway, thanks for response.

  • How to know the current jvm name executable ?

    Hi,
    I should want know what is the current jvm executable, from a java program. For exemple c:\foo\bar\bin\java.exe, or /home/foo/bar/java_1.6/jre/bin/java and other.
    With system properties, I can know java home, version, vendor etc of JVM, but how I can know "bin\java.exe" or other ?
    Thanks.

    Yes.
    I see java.runtime.name=Java(TM) SE Runtime Environment, I see the classpath, I see java.runtime.version=1.6.0_14-b08, I see java.home=/home/herve/java/jdk1.6.0_14/jre, but I don't see the name of java programme.
    For me it is something like {java.home}/bin/java. I don't see that in system properties.

  • How do I know which is the correct location of the JVM?

    How do I know which is the correct location of the JVM? What do I add to my PATH environment variable? I'm trying to install Sybase ASE on my Sun Fire v480 SPARC box, but keep getting the below error...
    *"A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>"*
    So I did the following...
    STEP 01) To confirm that Java is installed, I ran the java -version command. I received the following output...
    bash-3.00# java -version
    java version "1.5.0_17"
    Java(TM) Platform, Standard Edition for Business (build 1.5.0_17-b04)
    Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode)
    STEP 02) Then I tried to locate the location of where Java was installed...
    bash-3.00# which java
    /usr/bin/java
    STEP 03) Then I tried to confirm if it was a symbolic link or not...
    bash-3.00# ls -al /usr/bin/java
    lrwxrwxrwx 1 root other 16 Jun 24 01:54 /usr/bin/java -> ../java/bin/java
    STEP 04) The symbolic link doesn't seem to match any of the output below. Which is the correct location / path of Java (JVM / JRE)?
    bash-3.00# find / -name java -print;
    /usr/share/lib/java
    /usr/share/java
    /usr/bin/java
    /usr/sfw/include/mozilla/java
    /usr/include/firefox/java
    /usr/jdk/instances/jdk1.5.0/bin/java
    /usr/jdk/instances/jdk1.5.0/bin/sparcv9/java
    /usr/jdk/instances/jdk1.5.0/jre/bin/java
    /usr/jdk/instances/jdk1.5.0/jre/bin/sparcv9/java
    /usr/jdk/packages/javax.help-2.0/doc/api/com/sun/java
    /usr/java
    /usr/apache/tomcat/webapps/tomcat-docs/catalina/docs/api/org/apache/naming/java
    /usr/apache/tomcat55/classes/org/apache/naming/java
    /usr/apache/jserv/docs/api/org/apache/java
    /usr/j2se/bin/java
    /usr/j2se/bin/sparcv9/java
    /usr/j2se/jre/bin/java
    /usr/j2se/jre/bin/sparcv9/java
    /usr/appserver/samples/blueprints/adventure1.0.4/project/apps/activitysupplier/activitysupplier-ejb/src/java
    /usr/appserver/samples/blueprints/adventure1.0.4/project/apps/airlinesupplier/airlinesupplier-ejb/src/java
    /usr/appserver/samples/blueprints/adventure1.0.4/project/apps/bank/bank-ejb/src/java
    /usr/appserver/samples/webservices/security/web/apps/clientCert/clientCert-share/src/java
    /usr/appserver/samples/webservices/security/web/apps/clientCert/clientCert-war/src/java
    /usr/appserver/samples/webservices/security/web/apps/xms/xms-client/src/java
    /usr/appserver/samples/webservices/security/web/apps/xms/xms-share/src/java
    /usr/appserver/samples/webservices/security/web/apps/xms/xms-war/src/java
    /usr/appserver/samples/xml/apps/dom/src/java
    /usr/appserver/samples/xml/apps/sax/src/java
    /usr/appserver/samples/xml/apps/xslt/src/java
    /opt/staroffice8/share/Scripts/java

    I've been racking my head against the wall, but can't seem to find the solution... I've even installed the latest JRE (in a new location), but still seem to have the same problem. Please see the notes below...
    I installed the latest JRE in /export/home/jvm/jre1.6.0_17/
    bash-3.00# /export/home/jvm/jre1.6.0_17/bin/java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode)
    bash-3.00# PATH=/export/home/jvm/jre1.6.0_17/bin:$PATH
    bash-3.00# export PATH
    bash-3.00# echo $PATH
    /export/home/jvm/jre1.6.0_17/bin:/usr/sbin:/usr/bin
    bash-3.00# JAVA_HOME=/export/home/jvm/jre1.6.0_17/bin
    bash-3.00# export JAVA_HOME
    bash-3.00# echo $JAVA_HOME
    /export/home/jvm/jre1.6.0_17/bin
    bash-3.00# env
    HZ=100
    LC_MONETARY=en_CA.UTF-8
    TERM=xterms
    SHELL=/sbin/sh
    LC_NUMERIC=en_CA.UTF-8
    OLDPWD=/export/home/jvm/jre1.6.0_17
    PATH=/export/home/jvm/jre1.6.0_17/bin:/usr/sbin:/usr/bin
    MAIL=/var/mail/root
    LC_MESSAGES=C
    LC_COLLATE=en_CA.UTF-8
    PWD=/export/home/jvm/jre1.6.0_17/bin
    JAVA_HOME=/export/home/jvm/jre1.6.0_17/bin
    EDITOR=vi
    TZ=Japan
    SHLVL=1
    HOME=/
    LOGNAME=root
    LC_CTYPE=en_CA.UTF-8
    LC_TIME=en_CA.UTF-8
    _=/usr/bin/env
    bash-3.00# cd /cdrom/disc1050709/
    bash-3.00# ./setup -console
    InstallShield Wizard
    Initializing InstallShield Wizard...
    Searching for Java(tm) Virtual Machine...
    .........................A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>
    Is there something I'm missing?
    Thank you

  • Adobe Cloud has 2 different Muse programs.... how do I know which one is the newer better version?

    So I am new to Muse, and my Adobe Cloud has 2 different programs from Muse... how do I know which one is the newer better version?
    One Must program (Muse CC 2014.2)  has a black background when working on it... it looks like other Adobe programs such as Photoshop.
    The other one is light color (Muse CC) very similar to the black color Muse on functions.....
    One of the difference I notice is that the light color Muse has a few widgets in the library, while the black background Muse seems to have an empty library
    So... why are there 2 different Muse programs in my Adobe Cloud?

    Hi
    The latest version of Muse is 2014.2, so you need to uninstall another version of Muse manually.
    regarding the items in Library, you can add items in your library manually, as shown in this article
    Adobe Muse Help | Organizing and reusing design elements using Library panel
    Please let me know if you have any other query.

  • Right now I'm using version 3.6 somthing, but I would love to update, but I'm nervous cause last time I did my Add ons and Ext that I use didn't work. How would I know if my add ons and exts are compatible with a new version?

    I'm using version 3.6.24 (whatever the latest update was that just took place 2 days ago for the 3.6 Version) What I would like to know is if I update to a newer version like 7 or 8, whichever is not a Beta, how will I know if my add ons and extensions will work? Last time I had updated to a newer version, non of my favorite add ons or extentions would work, so I went back to 3.6. Can you please help cause something needs to be done cause my Firefox crashes a lot when Adobe is being used.
    I also don't know if any of my add ons are crashing my computer. Either Adobe crashes or my whole computer crashes. Can someone please help me?

    you can find which addon are compatible with Firefox 8 by here
    * https://addons.mozilla.org/en-US/firefox/compatibility/10.0

  • How do you know what version Mac OSX is on ANOTHER drive?

    How do you know what version Mac OSX is on ANOTHER drive without starting that drive
    and seeing the system profiler? In fact, because the drive wont start up, Now I am wondering if it is pre-intel. ? CMD-I doesn't do it. Thanks

    Why mess with this? Well, I got the HDDs and the enclosure from my previous PPC, so I'd like to make use of it all without $pending again.
    I don't see any problems with using the card and drives on your new Mac. Hardware is too pricey to just leave behind if you can't help it. With the new drivers I suspect you'll be able to use your drives, I just don't think you'll be able to boot from them if the interface card requires drivers. They should still be very fast storage devices, and probably reliable due to the ongoing support the vendor has provided.
    I went through the same type of issue when I bought my Dual G4 1.42 Tower (upgraded from a Quadra 840AV ). Several of my devices were SCSI (I was into SCSI Wide/Fast drive arrays at the time for video capture), and I was able to use an Adaptec card for scanning for several years with Jaguar and Panther. I'd spent quite a bit of cash to ensure high quality and performance and didn't want to loose all of the investment. Eventually the SATA hard drives and other USB and Firewire replacements became so cheap and performance improved enough that loosing SCSI with Tiger was not a big deal. I do think I should get about 5 years of hardware compatibility with most products and I keep older Mac's around for dedicated services as long as they aren't a costly maintenance issue.

  • How do i know what version of the Firmware Upgrade 1.01

    Op
    ps.
    What i was trying to say is how do i know what version of the firmware does my player have installed on it,
    I have a 28mb MuVo V200 and i was thinking of downloading the Firmware Upgrade .0.03 but i do not know if my player already has iMessage Edited by The_D_AUS on 05-0-2005 07:45 PM

    Just access the player Menu and then scroll to the option 'Setting'->'Information'.
    Jason

  • How do you know what Mac Mini version you are getting?

    I heard that as of September 2005, Apple had completly updated there Mac Mini's.. I heard that they put in a 64mb 9200 Graphic Card, and all had Bluetooth and Airport.. But, how would I know that what I am getting is the updated version? Compusa's Mac Mini has the July 2005 config posted, but no September updated specs..
    Thanks! If I can get this issue resolved, I might be picking up the September 05 Mac Mini. I'm new, so I hope I posted this on the right place!

    Will it be just luck if I pick up the updated version
    or does the box state the actual spec's in the
    store?
    If not, then this really will get madd. I was
    thinking about switching over to Mac from WXP but if
    they can't market/organize there specs better then
    Apple won't get my XP to Mac switch. Plain and simple.
    All you can do is assume that the specification Apple quote for the mini, and that is printed on the box, is the specification of the system you are buying. If it turns out to be uprated, you are fortunate, but otherwise it'll be exactly what you paid for.
    Clearly, if Apple were ONLY selling uprated models, the specification they quote would be changed to reflect that fact.
    The decision to purchase a system should be based on whether the model available meets your needs. As to Apple not being able to organize their specifications better, you might consider the possibility that the reason they don't quote better specifications for minis being sold is because not all minis being sold meet those improved specifications.

  • How do you know the version of a JAR file ?

    how do you know the version of a JAR file ?
    is it what is written on MANIFEST.MF ?
    for example i have a JAR file
    whose MANIFEST.MF has this
    Manifest-Version: 1.0
    Created-By: Ant 1.4.1so, whats the version of this JAR ? 1.0 ?

    anyway, that was JSTL..jar.
    Now, come to another JAR file....
    whose MANIFEST.MF has......
    Manifest-Version: 1.0
    Created-By: Apache Ant 1.5.1
    Extension-Name: Struts Framework
    Specification-Title: Struts Framework
    Specification-Vendor: Apache Software Foundation
    Specification-Version: 1.1
    Implementation-Title: Struts Framework
    Implementation-Vendor: Apache Software Foundation
    Implementation-Vendor-Id: org.apache
    Implementation-Version: 1.1
    Class-Path:  commons-beanutils.jar commons-collections.jar commons-dig
    ester.jar commons-logging.jar commons-validator.jar jakarta-oro.jar s
    truts-legacy.jarso, How do you believe whats the version now ? do u go with the comment "Manifest-Version: 1.0" or "Specification-Version: 1.1" ?
    definitely, you would go with the "Specification-Version: 1.1" and declare this JAR as STRUTS 1.1
    hmmm, so, if nothing is mentioned like above should we follow the MANIFEST version as the JSTL version ? in my earlier example i did not find any comment on ""Specification-Version" ......so , if anybody gives me that JAR , how do i decide whether its 1.0 specification or 1.1 specifucation compliant ?
    can you tell whats the JSTL version of my earler example JAR file ?

  • HT4759 How do I know what version I'm running on my iPad?

    How do I know what version is running on my iPad?

    Rose May wrote:
    Can it be upgraded?
    You have not supplied any Information...
    But See Here... How to update your iPhone, iPad, or iPod touch

  • How do you know what version of OS X you have on your Mac Mini?

    How do you know what version of OS X you have on your Mac Mini?

    Apple Menu (upper left on meu bar) > About This Mac
    "Verion: " 10.8.x is Mountain Lion, 10.7.x is Lion, 10.9.x is Mavericks, 10.6 x is Snow Leopard.

  • How do I know what version of iTunes I have?

    Trying to download music from windows laptop...says my iPad iTunes needs to be version 11.1 or higher...how do I download latest version and how do I know what version I have?

    To find out what version you have, click on Help > About iTunes.
    To get the latest version, go to http://www.apple.com/itunes/download/

Maybe you are looking for

  • How to show date with format conforming to system date format ?

    Hi all, I write Java program running on Windows 2000 Advanced Server. I want to show date in a status bar with the format the same as that in system date format where the program resides, so when I change the date format through the regional setting,

  • BPM Process Spaces: Attachments and Comments issue

    Hi, I've integrated BPM Process Spaces with WebCenter Spaces. When I'm trying to initiate a Process and send comments and attachment, the values for them is not passed from step to another. For example, if user A initiate a task with comments and att

  • Itunes is not sharing (or anything else) properly

    iTunes is really beginning to bum me out to the highest level of bumtivity. I have a MacMini running OS X 10.7.3 (fully updated). I run iTunes on it and it acts as a sort of media server for me. Until recent iTunes updates it's worked flawlessly. I c

  • SAP BW ON SAP HANA..

    Hi Experts, I would like to ask a simple question. (Might be quite stupid one for the experts...) in order to determine the right direction for me to achieve the bright future.. While I knew nothing about SAP Technologies about couple months ago, I a

  • BlazeDS provides push functionality through HTTP ??

    Hi All ,     In my application i am integrating my Flex app with Java Struts using BalzeDS. Now i have a requirement like Data(Server) push functionality through HTTP. I am using HTTPService calls only in my Flex application. Can BlazeDS provides pus