Java VM detection

hi,
i have searched for a way to see if there is a java VM on my machine and which version.
Checking the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
will not work for machines with microsoft JVM.
is there a general way to detect the jvm version?

Write a small application to iterate through the System.properties.
There's plenty of information there, at least in Suns plug-in VM.
Not sure about Microsofts VM.
Eg. under Java 1.3.1_06 VM... there's the following properties..
java.runtime.version=1.3.1_06-b01
java.specification.version=1.3
java.version=1.3.1_06
java.vm.version=1.3.1_06-b01
javaplugin.nodotversion=131_06
javaplugin.version=1.3.1_06
regards,
Owen

Similar Messages

  • Java not detected even though installed?

    I'm trying to access a web based VPN client. When I go to the necessary website I get 'Java not detected or installed. Cisco Secure Desktop requires Java to be present and configured on your desktop.' I definitely have Java, so how do I make it detectable?

    The solution was actually very simple - I just needed to enable Java in the Safari Security Preferences!

  • Java Plugin Detection using VBScript on Internet Explorer

    Hi,
    I need a way to detect when the plugin version is above a certain version number (such as 1.4.1 or higher) so that I can give the user some extra info as to what is happening when the plugin is downloading automatically on Internet Explorer. Something like :-
    "Please wait for Java plugin to download"
    At present there is a long delay when the user may not know what is happening as no info is relayed back to user.
    I know that the presence of the plugin can be detected using vbscript but not with JavaScript but how do i determine that the user has 1.4.1 or higher. I use the following code:
    <script language="vbscript">
    If IsObject(CreateObject("JavaPlugin"))=True Then
    document.writeln("some info to user")
    End If
    </script>
    This tells me if a JavaPlugin is installed but not what version so we still dont know whether the applet will run or the plugin will download.
    I have also tried:
    <script language="vbscript">
    If IsObject(CreateObject("JavaPlugin.141"))=True Then
    document.writeln("some info to user")
    End If
    </script>
    this works but what if the user already has a version greater than 1.4.1 this is not detected and a nonsense message saying that the Java plugin is downloading is displayed.
    Any ideas?

    Here's JavaPlugin detection for netscape and ie using JavaScript . . .
    Throw this in a .js file and source it at the start of you html.
    function detectPlugin() {         
         var thePlugins = detectPlugin.arguments;     // allow for multiple checks in a single pass
         var pluginFound = false;               // consider pluginFound to be false until proven true
         // if plugins array is there and not fake
         if (navigator.plugins && navigator.plugins.length > 0) {
    var pluginsArrayLength = navigator.plugins.length;     
              // for each plugin loop through all desired names and check each against the current plugin name
    for (pluginsArrayCounter=0; pluginsArrayCounter < pluginsArrayLength; pluginsArrayCounter++ ) {
    var numFound = 0;
    for(namesCounter=0; namesCounter < thePlugins.length; namesCounter++) {
                        // if desired plugin name is found in either plugin name or description     the pluginFound                     
    if( (navigator.plugins[pluginsArrayCounter].name.indexOf(thePlugins[namesCounter]) >= 0) || (navigator.plugins[pluginsArrayCounter].description.indexOf(thePlugins[namesCounter]) >= 0) ) {
    numFound++;
                   // now that we have checked all the required names against this one plugin,
                   // if the number we found matches the total number provided then we were successful
    if(numFound == thePlugins.length) {
    pluginFound = true;
                        // if we've found the plugin, we can stop looking through at the rest of the plugins
    break;
    return pluginFound;
    function noJavaPlugin(){
    window.open("http://plugin_location");
    function redirect_users(URL){
    location.href = URL;
    if(navigator){
    browser_string = navigator.appVersion + " " + navigator.userAgent;
    if (browser_string.indexOf("MSIE")>=0) {
              document.write(' <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"');
              document.write(' CODEBASE="javascript:noJavaPlugin()" width=1 height=1>');
              document.write(' <param name="type" value="application/x-java-applet;version=1.4">');
              document.write(' <param name="cache_option" value="Plugin">');
              document.write(' <param name="cache_archive" value="">');
              document.write(' <param name="MAYSCRIPT" value="true">');
              document.write(' </object>');
         else {
              if (! (detectPlugin("Java Plug-in 1.4.0_01 for Netscape Navigator (DLL Helper)"))) {
                   noJavaPlugin();
    else{
         noJavaPlugin();
    redirect_users("http://place_to_go_if_they_have_plugin");

  • Java applet detecting system states

    I am currently working on a chat room applet to keep all of our emplyees connected during the day for user support and general communication; however, we have been having an issue with people not going idle lately. The solution we have settled on is trying to detect if the user's computer has been locked (a much more habitual thing to do) from the java applet that they access the system from (all of our users are accessing the applet from a windows machine). I cannot for the life of me figure out how to do this. Is this even possible in an applet or would it have to be an actual application?
    thanks in advance for the help!

    It's probably possible if you sign the applet code, but it's messy. You need to use JNI to access the system status which requires that an appropriate DLL is in place on the client machine. A signed applet can install one.
    But you quickly get to the point where it might make more sense to use a stand-alone program, which you could place on a shared directory.

  • Java window detection

    Hello!
    Has java support for OS GUI windows detection ?
    Would you point me to a tutorial ?
    Ps : I search over Google already
    Regards,
    Edited by: aurelian_cl on Sep 29, 2009 2:25 PM

    I have a project that made screen pictures and save them as jpg or png files, and I want to add a new feature "Window detection." I choose java because I do not want to be platform dependent.
    I not want to do a program in C/c++ for "Window detection" feature because the final project will be platform dependent.
    Regards,

  • Java not detected in redhat 5 linux firefox

    I have installed the latest java 1.6_24 version using rpm on linux redhat machine. "java -version" works OK, I have the link:
    libjavaplugin_oji.so -> /usr/java/jre1.6.0_24/plugin/i386/ns7/libjavaplugin_oji.so
    Also:
    /usr/bin/java -> /etc/alternatives/java
    /etc/alternatives/java -> /usr/java/jre1.6.0_24/bin/java
    In the past install (java 1.4) there where also some references to "jvm" but these don't exist in 1.6 version.
    Must be something else missing..

    libjavaplugin_oji.so is the old classic Java plugin. For Firefox 3.6.x you need the Next Generation Java plugin (libnpjp2.so)
    See;
    * http://www.oracle.com/technetwork/java/javase/manual-plugin-install-linux-136395.html
    * http://kb.mozillazine.org/Java

  • Kaspersky vs Java.exe detected as virus - Need help!

    Hi,
    Just installed yesterday Kaspersky Internet Security 2009 on my VISTA Ultimate 32 bits laptop. After doing a complete analysis, it reported out of a total of 3 the following threats:
    c:\windows\system32\java.exe
    c:\Program Files\Java\jre1.6.0\bin\java.exe
    What can I do with these?
    Honestly, I don't know really as I'm far from being an expert with JAVA.
    In conclusion, what do I do with these 2 files? Here is an item I could find from my VISTA "programs install/uninstall" window:
    "JAVA(TM) SE Runtime Environment 6"
    To solve my threat warnings:
    - do I need to update this to a newer version? If so how?
    - put files to quarantine as they suggest?
    - do anything else?
    Thanks in advance for help!

    Hi,
    I solved this problem by doing as following:
    - first uninstall JAVA Runtime which was already installed in VISTA
    - Next Install last runtime SE Version
    "Java SE Runtime Environment 6u7".
    - Went to http://java.sun.com/javase/downloads/index.jsp
    - Created myself a user account
    - From page, downloaded runtime "Java Runtime Environment (JRE) 6 Update 7"
    - Installed it
    - When I then checked errors from Kaspersky, no more regarding JAVA.

  • Java -Plugin detected  JRE collission

    Hey ia ma using the follow script
    <script language="javascript">
    var _app = navigator.appName;
    if(_app == 'Microsoft Internet Explorer'){
    document.write( '<OBJECT ID="VoiceRecorder" class="recStyle"',
    'classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"',
    'WIDTH = 250',
    'HEIGHT = 150',
    'codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2">',
    '<PARAM NAME = CODE VALUE = RecAndPlay.RecAndPlay >',
    '<PARAM NAME = CODEBASE VALUE = "/webmail/webmail/" >',
    '<PARAM NAME = ARCHIVE VALUE = sRecAndPlay.jar >' ,
    '<PARAM NAME = "type" VALUE="application/x-java-applet;jpi-version=1.4.2">',
    '<PARAM NAME = voiceData VALUE="">' ,
    '<PARAM NAME=PLAY_ONLY VALUE=false>',
    '<PARAM NAME=VOICE_URL VALUE="inMem">',
    '<PARAM NAME=MAX_REC_LIMIT VALUE="300">',
    '</OBJECT>');
    else if(_app == 'Netscape'){
    document.write(' <EMBED ',
    'type = "application/x-java-applet;version=1.4" ',
    'java_CODE = "RecAndPlay.RecAndPlay"',
    'java_CODEBASE = "/webmail/webmail/"',
    'java_ARCHIVE = "sRecAndPlay.jar"',
    'WIDTH = "250"',
    'HEIGHT = "150"',
    'PLAY_ONLY = "false"',
    'VOICE_URL = "inMem"',
    'MAX_REC_LIMIT = "300"',
    'pluginspage="https://java.sun.com/products/plugin/index.html#download">',
    '</EMBED>');
    else {
    document.write('<p> Sorry, unsupported browser.</p>');
    </script>
    Previous it was working wheb i had jre. But once i installed jre 1.4 (and also tried with jre 1.5) it is giving this error in MOZILLA browser. But working fine in IE browser.

    first uninstall all the previous JRE version.
    Open Jav plug-in from control panel and select the java tab,
    Select only one JRE version into this tab.
    restart ur browser, perhaps u does not get this problem in future.

  • Netscape browser give Java plugin detect JRE collision

    hi
    when i run my application on Netscape v8.0 i got a problem metioned in subject line. please help me for this.
    thanx in advance

    first uninstall all the previous JRE version.
    Open Jav plug-in from control panel and select the java tab,
    Select only one JRE version into this tab.
    restart ur browser, perhaps u does not get this problem in future.

  • What does "java not detected" mean and what should I do about it?

    I am a teacher who teaches partly online. While trying to use Screen Recorder in Kaltura Media Space to record my desktop with audio voiceover, I encountered this message in red and was not able to use this device? I am not sure what the message means or how to fix this. I am using MacOS 10.9.1 and Safari. MediaSpace is provided by our school system, so I am not able to use my iPad to do this.

    Do you have a Java Preference Pane in System Preferences? if not, Java isn't installed and from your description, it sounds like it may be required. You can also try running this Java Test.
    Java Test
    Java

  • Java never detects window maximized event?

    Hello All,
    My initial problem was in trying to bring a window back to the front if a user selects the menu item that originally launched that window. I had to add extra code to handle the case where the window was minimized (iconified). Once I did that, all worked as expected, except if I maximized the window, then iconified it, then selected the menu item to redisplay it, it came up, but at the size and position it was before I maximized it. However, if I restored the iconified window by double clicking on it, it came up in its maximized state.
    Here is my basic code to redisplay the window:
    myFrame.setVisible(true);
    int state = myFrame.getExtendedState();
    if ((state & JFrame.ICONIFIED) == JFrame.ICONIFIED) {
        myFrame.setExtendedState(state & ~JFrame.ICONIFIED);
    myFrame.toFront();After investigating some more, it seems like Java never knows that the window was maximized. That is, state & JFrame.MAXIMIZED_BOTH never equals JFrame.MAXIMIZED_BOTH. Neither bits for horizontal or vertical maximized are set either. I also tried adding a WindowState listener, and the windowStateChanged method never gets called when the window is maximized. Also, the line
    myFrame.setExtendedState(JFrame.MAXIMIZED_BOTH); does nothing.
    I am using Java 1.4.1_02 on SunOS 5.8.
    Please help! I am baffled by this behavior!
    Barb

    Hello All,
    My initial problem was in trying to bring a window back to the front if a user selects the menu item that originally launched that window. I had to add extra code to handle the case where the window was minimized (iconified). Once I did that, all worked as expected, except if I maximized the window, then iconified it, then selected the menu item to redisplay it, it came up, but at the size and position it was before I maximized it. However, if I restored the iconified window by double clicking on it, it came up in its maximized state.
    Here is my basic code to redisplay the window:
    myFrame.setVisible(true);
    int state = myFrame.getExtendedState();
    if ((state & JFrame.ICONIFIED) == JFrame.ICONIFIED) {
        myFrame.setExtendedState(state & ~JFrame.ICONIFIED);
    myFrame.toFront();After investigating some more, it seems like Java never knows that the window was maximized. That is, state & JFrame.MAXIMIZED_BOTH never equals JFrame.MAXIMIZED_BOTH. Neither bits for horizontal or vertical maximized are set either. I also tried adding a WindowState listener, and the windowStateChanged method never gets called when the window is maximized. Also, the line
    myFrame.setExtendedState(JFrame.MAXIMIZED_BOTH); does nothing.
    I am using Java 1.4.1_02 on SunOS 5.8.
    Please help! I am baffled by this behavior!
    Barb

  • Safari on Win7 -- Java not detected

    I am trying to use Safari on a Win7 box to attend a WebEx meeting.
    The WebEx Java client works on IE (so Java in installed on the machine).
    However, when I try to launch the WebEx Java app from within Safari, I get an error of "WebEx Client Page tried to load Java content but Java is not available or installed"
    I have 'Java enabled' checked in the Safari preferences.
    I re-installed Java from Oracle and restarted the browser, but nothing changed.
    Anyone know how to get Safari working on Win7 to support using Java apps?
    Thanks in advance,
    Charlie

    The solution was actually very simple - I just needed to enable Java in the Safari Security Preferences!

  • Java Not Working, And Still No Answers. What Gives?

    Okay, decided to start this topic anew, since the only response I got to the other one was a post calling me "rude and impatient" (I guess that's what they're calling "persistence" nowadays..) , instead of...well...ignoring my admittedly pushy and harsh tone and actually being helpful. However, for the sake of it, I do apologize for my attitude in my last topic.
    But I digress, let's start off on a new foot, eh? On to the problem that is STILL at hand(in other words, "patience" hasn't gotten me jack, not even a "we don't know yet"):
    So last night (10 PM January 20th), the Firefox Plugin Checker said that my Java version was outdated. I also got a pop-up saying that my current version of Java at the time (Java 7 update 10) had vulnerabilities. So to try and fix this, I went to the Java page and downloaded the update (Java 7 update 11).
    To check and see if my update was working, I went to Java's check page, as well as another page I use. And here I discovered a problem. I got a notification that an old version of Java had been detected, and another prompt to download the current version (which I had already done). So I erased all versions of Java from my control panel, and tried to check it again. And when I did, I got this: http://oi50.tinypic.com/35b6xx2.jpg and http://oi47.tinypic.com/15fg37p.jpg.
    As you can see, both pages tell me that I need to install a missing plugin of some sort. So, thinking this would resolve the issue, I clicked the Install Missing Plugin button. This is what it told me was missing: http://oi45.tinypic.com/302uwbl.jpg. So I clicked next to install it.... and got this: http://oi45.tinypic.com/2cici0x.jpg, which I assume means that the plugin did not install. So I pressed Manual Install... and was lead/linked right back to the Java download page (where it all began, and what doesn't seem to be working in the first place)
    I go to check my plugins again (Just to make sure and also for extra information), and it appears to say that my Java version is current (is that what "Java Deployment Toolkit 7.0.110.21" is? I don't know, I am not good at technology at all. Either way, here is what it looks like: http://oi48.tinypic.com/4kxzz4.jpg). So...if it is current, why is it not working (i.e. I am unable to play games, DO MY COLLEGE CLASSWORK, or play Java-based games)?
    If it helps anything, here is what my control panel looks like in regards to Java right now: http://oi45.tinypic.com/2qlxu9t.jpg Am I missing anything that would make Java work?
    And before anyone says that Java is not essential: It may be that way to you, but I need Java to do classwork for college. Veterinary college.
    So, in short, what is going on with Java, and how can I fix it?
    EDITEDITEDIT: I Have found that I can do my classwork without Java. HOWEVER, this DOES NOT mean that the problem is solved or over with. I STILL WANT TO KNOW HOW TO FIX THIS PROBLEM AND GET JAVA TO WORK. Even if I never actually need it, I would still like to have a (working!!!) Java version because of two reasons: 1) I would rather have such a program and not need it, than need such a program and not have it, and 2) aesthetics. Sorry to say, but I am very particular about how things look when it comes to my belongings, and the fact that Java is messing up is making me actually stressed. In short, I still want the above issue solved, even if it's just purely for the sake of Peace Of Mind.
    Another note: I would (please!) appreciate a timely response on this matter. Even if the response is a "We don't know what the issue is and/or we are working to solve this issue.", that would satisfy me for the time being. I would just like a semi-timely response that would let me know that FF/contributors here have read the above and actually give a semblance of a care about their userbase.
    Thank You.

    '''ponyparty, '''
    The first prompt you see in Firefox to activate Java is because Java is currently on the Mozilla blocklist ( the "Hot Topic" article [[How to use Java if it's been blocked]] explains the reason for block and how to activate Java, including how to bypass the plugin activation prompt for trusted sites).
    cor-el is right about why you are seeing a second [http://oi48.tinypic.com/de8f8y.jpg Java "Security Warning"] when trying to view Java applets, that you have to click to run. This is a ''' Java''' security feature and not anything Firefox does.
    Try the same Java sites in Internet Explorer .... don't you also see the Java "Security Warning?" If you want to lower your Java security back to "Medium" in the Java Control Panel, see http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp.html#security for details. That's up to you but I would leave it on "High " since Java 7 is still basically insecure, according to the reports I've seen and [https://blog.mozilla.org/security/2013/01/11/protecting-users-against-java-vulnerability/ this "Protecting Users Against Java Vulnerability]" Mozilla blog post.
    If the second Java prompt is your only remaining issue then your problem is really solved, since it is a new Java security feature and not anything in Firefox.
    Some background:<br>
    At the time I was helping you in the [https://support.mozilla.org/en-US/questions/944267 older thread you started] (now locked because you started this one) the solution to uninstall JavaFX wasn't known. On Dec 13th I wrote, ''There may be problems with Java 7 Update 10 since a number of Windows users have reported that Firefox is not detecting the plugin'' and I linked to a couple of related threads, including [http://forums.mozillazine.org/viewtopic.php?f=38&t=2628935 this MozillaZine thread], in which uninstalling JavaFX as a solution was posted 22 Dec 2012. On 25 Dec 2012 in the same MozillaZine thread, I posted a link to [https://bugzilla.mozilla.org/show_bug.cgi?id=820759#c12 this Dec 24th bugzilla comment] by an Oracle employee, who posted that uninstalling JavaFX was a solution for '''Oracle's''' Java 7 detection bug. Oracle has been working on the bug (to be fixed in an upcoming Java 7 release) and they created [https://www.java.com/en/download/help/firefox_java.xml this java.com help page], which is now included in the related MozillaZine and Mozilla Support articles on Java that I posted above.

  • Removing the Java Deployment Toolkit?

    Hello, 
    I was wondering if it is possible to remove the Deployment ToolKit .dll from the machine or disable it in browser within an infrastructure?  I wanted to see if there are any other functionality that could be impacted I remove the deployJava1.dll from my machine or disable it in browser?
    The link below shows the following information regarding blocking or removing.
    What is the Java Deployment Toolkit?
    What happens if the Java Deployment Toolkit plug-in is blocked?
    By blocking the Java DT plug-in, the Java version detection mechanism is disabled. Therefore, when a user tries to launch a Java applet or application, that requires a specific Java version other than the active Java version on a user’s system, it will fail.
    Does this mean the application will break?  Or just that the detection mechanism will be broken for  the application version check and the app will still run?  I would like to remove these bits to ensure no version checking is done on my systems.
    Thanks,
    Michael

    Your "More System Details" doesn't show any Java plugin at all. Are you sure you have the current version installed? This test page will lead you to a download if needed:
    http://www.java.com/en/download/testjava.jsp
    If you have Java installed, check whether its two plugins (Java Platform SE and Java Deployment Toolkit) are set to "Never Activate" on the Add-ons page. That disables them. Open the Add-ons page using either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Plugins. Note that disabled plugins cluster at the bottom of the list.

  • Java will not run in IE9

    I find this problem posted all over the internet -- however, I have found few answers and no solutions that work.
    Java will not run in IE9 
    In the last three days I have installed Java 7.5 at least five times (after total uninstalls).
    I have Windows 7 Home premium with all updates installed.  Anti-virus programs are installed.
    Even the java website   http://www.java.com/en/download/testjava.jsp cannot detect the Java program in IE9.  It displays the following message:  “No working Java was detected
    on your system.  Install Java by clicking the button below.”
    I know you don’t want to hear about other browsers, however, this is part of the diagnoses – Java works fine in Chrome.  (Obviously, there are some programs that can only be accessed in IE.)
    I have tried turning off the firewall, anti-virus AVG, active x filtering, and every other program.  I have cleared the browsing history, cookies, etc.  50 times = nothing works.
    I experienced that Java did work once and only once in IE9 after each of two new reinstallations of Java 7.5.
    Process Explorer shows that Java is running, I’ve included a screen- shot (hope it shows up)
    All knowledgeable answers are appreciated.

    Hi,
    Have you tried the compatibility mode in Internet Explorer 9? Or does this issue occur to previous Internet Explorer versions?
    For reference about compatibility mode:
    http://blogs.msdn.com/b/ie/archive/2010/10/19/testing-sites-with-browser-mode-vs-doc-mode.aspx
    How to use Compatibility View in Internet Explorer 9
    You could try to deselect the “Automatically Detect Settings” to check how it works.
    And enable the scripting of Java applets settings:
    1. Click "Tools" --> "Internet Options"  
    2. Next, select the Security Tab, and select the "Custom Level" button
    3. Scroll down to "Scripting of Java applets"
    4. Make sure the "Enable" radio button is checked.
    5. Click OK to save your preference.
    Or you could try to change the settings in group editor:
    Computer Configuration\Administrative Templates\Windows Components\Internet Explorer\Internet Control Panel\Security Page\Internet Zone\Java Permissions
    Meanwhile, I suggest you could
    reset Internet Explorer settings to see the results.
    Hope this helps.
    Vincent Wang
    TechNet Community Support

Maybe you are looking for

  • Can anybody help on sending mail through Java Code

    I am trying to send the mail using the java code and I am unable to do it. My code is import java.io.*; import java.net.*; import java.util.*; import java.text.*; public class EmailExample { public static void main(String[] args) Socket smtpSocket; D

  • Forwarding a variabe in request scope

    When i am trying to forward a variable in request scope along with action, i am not not able to retrieve the value in action class.As in config.xml one action will call other action in LayoutConfig.xml I couldnt retrieve the vaue in action class.So a

  • JDBC and Servlets

    I am writing a servlet which retrieves data from a database into a result set. I want to compare a username (taken into the servlet via a form for example) with a username from the result set. Can anyone tell me how this might be coded? Thanx.

  • How RMI handle exception in RMI kernel ?

    hi everyone. How RMI handle exception in RMI kernel ? That is , when RMI catch an exception , what RMI should do to handle the exception? best regards.

  • Get a printer error when saving a message as a pdf

    i restored the HD on my MacBook pro. NOW IF I TRY TO SAVE A MESSAGE AS A PDF IN THE PRINT DIALOGUE BOX I GET A MESSAGE THAT READS 'PRINTER ERROR. HOWEVER, MY PRINTER IS WORKING FINE.