Detecting and Installing JRE

Hello
I'm a setup developer, and I'm tryng to detect from my setup program if the JRE is installed, all that by code, searching the registry whatever, then if it's not installed launch a Silent mode installation of JRE, But I don't know how to do it
How you can detect the installed JRE ?
How you can install JRE in silent mode?
Thanks

Can you detect JRE ?
The answer is yes. You have to read the registry and look for the uninstall string ( if you are using the 1.5.0 beta1 that got released today ) this is the registry value
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3248F0A8-6813-11D6-A77B-00B0D0150000}
and the string is
MsiExec.exe /I{3248F0A8-6813-11D6-A77B-00B0D0150000}
look for these registry keys and you have detected the JRE
Is there a silent installation ?
Yes the command is
<jre>.exe /S /V" /qn"

Similar Messages

  • OJEC1.0: Cannot detect and install the selected platform

    Hi All
    I try to setup the OJEC 1.0 SDK for Windows x86.
    While adding the emulator located in C:\Program Files (x86)\Oracle\Oracle JavaME Embedded Client\1.0\emulator-platform as a new "Java ME CDC Platform Emulator" in the "Java Platform Manager" (Tools -> Java Platforms -> Add Platform), it throws "Cannot detect and install the selected platform" error.
    This should be successfully done because of following the [Developer's Guide|http://docs.oracle.com/javame/config/cdc/cdc-opt-impl/ojmeec/1.0/install/html/z400009a1006487.html]
    Here is my Netbeans's environmental information. The same error causes in the case of NetBeans 6.9.1.
    Product Version: NetBeans IDE 7.0.1 (Build 201107282000)
    Java: 1.7.0_01; Java HotSpot(TM) 64-Bit Server VM 21.1-b02
    System: Windows 7 version 6.1 running on amd64; MS932; en (nb)
    Any suggestion would be appreciated.
    Regards,
    --yoshiki                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Detect and install java runtime environment using javascript

    hi, i'm a flash developer and i only use javascript to embed my movies in html, i've search the web and found some answers but i can't seem to understand it very well maybe because i don't have that much time to learn it. please if you have any script that can detect JRE and install it if it's not installed share it to me. that would be a great help. thanks in advance. :D

    But it is to do with Java and some people here may
    know the answer. I don't know the answer but I would
    like to.Yes some might know the answer, but I think you will find the answer faster if you google, or ask in a javascript forum.

  • DC7700 can't detect and install sound card after update to Windows 7

    I've been trying to get the sound on my HP DC7700 Ultra Slim desktops to work for a few months now (I'm a teacher at a high school, so I have about 100+ of them to take care of). I've upgraded them from XP to Windows 7, and the computers no longer recognize the sound card.
    I have tried installing the Realtek driver from their site and HP's, I've tried updating the UAA architecture as suggested in other posts here and here.
    In device manager, all hardware has been detected and correct drivers have been installed, including PCI and chipset drivers. 
    Randomly, ONE DC7700 with a unique hard drive worked. I painstakingly checked every single driver installed and found the two that were different:
    "Realtek High Definition Audio" under "Sound, video and game controllers"
    "High Definition Audio Controller" under "System devices"
    Pictures of the driver details for both are posted below.
    I am completely at a loss as to how to accomplish this successfully, and I appreciate any help. Our school is depressingly poor, and without sound videos are completely useless to them.
    Thank you in advance for your time,
    Kris Brackebusch

    Hi, Kris:
    Try reinstalling W7 on one of them that doesn't have audio.
    On that model, W7 should be installing a generic HD audio driver that works and then you can install the Realtek HD audio driver either from the dc7700 support page or the latest one from Realtek.
    You do not need the MS UAA Bus driver, because that is only for XP.
    UAA is included native to Vista and newer versions of Windows.
    I do not recommend you install it in an effort to resolve the issue.
    I have worked on dc7600's dc7700's and the newer Elite 8xxx models, which all have the Realtek HD audio chip.
    Never had a problem getting the sound to work right from the upgrade.
    The HD audio is the driver that Windows installs natively.
    The Realtek HD audio driver is from Realtek.

  • Issue running Forms. System keeps trying to run OAJInit and install JRE 5.0

    Hi,
    Just changed to a new machine and trying to access forms from Firefox, IE and/or Netscape. When clicking on a link that should take me to forms, I am asked to download and install OAJinit.exe, with the following message:
    In order to access this application, you must install the J2SE Plugin version 1.5.0_03. To install this plugin, click here to download the oajinit.exe executable. Once the download is complete, double-click the oajinit.exe file to install the plugin. You will be prompted to restart your browser when the installation is complete.
    Installation of JRE 1.5 goes well, but when trying to run forms, I am still prompted to download OAJInit.exe... If I proceed with the installation, I get
    "you already have this version of the JRE installed. Please uninstall the product through your add/remove programs utility before reinstalling."
    Any idea what I could do wrong?
    Thanks

    I agree with Renato,
    The $OA_HTML/bin/appsweb_INSTANCE_server.cfg (or appsweb.cfg in single Apps node configuration) file is right there JINIT/Client JRE configuration is stored on a server side.
    It is advisable however to adjust an autoconfig context configuration file and then run autoconfig then instead of modifying configuration file manually.
    Plus as far as I know using Sun J2SE 5.0 on a Clint side is in Early Adopter Program and isn’t certificated for wider public.
    REF http://blogs.oracle.com/schan/newsItems/departments/release11i/2006/04/18#a23
    Replacing Oracle JInitiator with Sun's Native Plug-In
    But let me ask the following question before you will go ahead with Renato’s suggested:
    - Is this problem appeared only on that single PC?
    - If yes then which Jinitator version is used on other PSs to get connected to the particular environment?
    - Can you try in IE Tools-> Internet Options…-> Advanced -> Java (Sun) and untick Use JRE 1.5.0 ... Try to connect to the environment after that.
    Yury

  • Webstart not able to automatically download and install JRE

    I'm using the following tag. It used to work a few months ago, but now webstart says it could not able to automatically download it, and that the JRE must be installed manually.
    Any ideas? Thanks!
    <j2se version="1.6.0_03" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-Xms100m -Xmx400m"/>

    6u3 was never posted for autodownload by javaws. If it used to work for you, you must have been on machine with it already loaded.
    Why don't you just use 1.6.0_03+ ?
    I'm not sure if _03 will ever be pushed, but I might be able to get 1.6.0_05 pushed for auto-download after it is released in a few weeks.
    /Andy

  • Why does Adobe Premiere Pro CC 2014 cannot detect and install BlackMagicDesign's UltraStudio 4k?!

    I have the new MAC Pro and I installed Adobe Premiere Pro CC 2014 few days ago.
    I have the UltraStudio 4K by BlackMagicDesign connected through ThunderBolt.
    BUT...
    Premiere Pro CC cannot add it to the device control.

    Did you install the UltraStudio Device driver before Adobe Premiere Pro CC 2014 or after it ?
    Martin

  • Detect and install quick time with lingo

    When I import a quick time movie into Director presentation - it needs QuickTime to be installed on every computer to run properly
    Is there any setting which may make these kind of movies run on any computer without QuickTime?
    Is there a Lingo script which may solve it?
    Otherwise is there any Lingo code to check for the presence of QuickTime and then react accordingly if the user doesn't have it installed ? (probably display a screen that offers to install QuickTime or quit the movie)
    any idea?
    Thanks a lot in advance.
    sof

    Is there any setting which may make these kind of movies run on any computer without QuickTime?
    No - if you want to display QuickTime movies (or use #quickTimeMedia members in Director) the playback machine must have QuickTime installed on it.
    Otherwise is there any Lingo code to check for the presence of QuickTime and then react accordingly if the user doesn't have it installed ?
    There is the QuickTimeVersion() command (which you would have discovered if you had checked the Help file):
    on prepareMovie
      if QuickTimeVersion() < 7.0 then
        _player.alert("You need to install QuickTime - please re-start this program when the installer finishes")
        -- assuming the installer is in the same folder as the current movie/projector
        _player.open(_movie.path & "QuickTimeInstaller.exe")
        _player.quit()
      end if
    end

  • Want a code to check & install JRE automaticallly without user intervention

    hi
    I am trying to run an applet on a machine that is not having JRE on it.
    want a code that will check for such condition and install JRE automatically.
    If JRE is already present then it should check for required version and enable it also.
    please help in this regard.
    thanks in advance
    Santosh.

    The ability to detect the jre at the update level, as well as the ability to install a specific version are only present if the DT plugins are installed.
    These plugins only exist for windows and are only part of the 6u10 (1.6.0_10) versions of java.
    The javascript you show uses an undefined minimumVersion variable.
    also note, you cannot use the wildcard '1.5.0*' in the call to isWebStartInstalled (which takes minimumVersion arg)
    if fixed, this code would still not work as you want, since clients with 1.6.0 or later would sail straight thru and launch.
    I suggest replacing isWebStartInstalled() with deployJava.versionCheck('1.5.0*') .
    then on systems with the plugin installed, if no 1.5.0* version is installed, the latest 1.5.0_XX will be installed before launching the app.
    (assuming the app has also <j2se version=1.5/> or equiv.)
    on systems w/o plugins installed, the latest version of java will be installed, and it will be up to javaws auto download to get 1.5.0* version.
    this could still have problems, especially on platforms not supporting the plugins (non-windows) , since code keeps checking for '1.5.0*', and installing only latest, so you would want to wrap install with something to prevent repeated attempts to install:
    if (deployJava.versionCheck('1.6.0+') && !deployJava.isPluginInstalled()) {
    ---- don't do any install here - ---
    /Andy

  • Automatic download/install JRE via JNLP

    Under Java Web Start Reference (http://java.sun.com/products/javawebstart/developers.html)
    "A MAIN feature of the ... JNLP... is the ability to automatically download and install JREs onto the user's machine".
    Many have taken this to mean "if the client doesn't have the necessary JRE it will be installed". Well, if the client doesn't have ANY JRE isn't that the same thing as not having the necessary JRE installed? Apparently not. It appears that it is similar to the old joke: How to be a millionaire: 1) First, get a million dollars. The documentation might be enhanced if this chicken/egg situation were mentioned. It seems that we have to write scripts, etc to either point to a JRE download site or somehow manage the install ourselves. I started to look into this but then realized YOU HAVE TO HAVE ADMIN RIGHTS to install the JRE on the client.
    This may all be self-evident to those who have been through this but it's a bitter lesson. If what I have written is not true would someone set me straight and tell me how to get around the admin rights problem? Oh, and does the admin rights problem persist if the the client has a JRE but JNLP needs to download/install a different version? This may be the mortal blow to three months' effort at getting J2EE/J2SE in the door at my company: all we want is to download and run a small Java app for the user to use regardless of which machine he or she is using.

    To change the Registry, Windows requires admin rights. This may (or may not be something you can achieve with Secondary Logon Rights - see http://support.microsoft.com/Default.aspx?kbid=225035 ) There is also a lot of information about this on the web, you should do some further research.
    To run applets and browser related programs requires that Java install the JRE, which uses Browser Helper Objects (BHO's) and that involves Registry entries.
    However, if you only need to run Java programs from the commandline, then the possibility exists to install the Java JDK without a public JRE. That could be done by a simple copy of the appropriate directory(s). This will give you a private JRE inside the JDK, and doesn't make any Registry entries. (Of course, then applets can't be run.) That JRE can then be accessed using a full path to the java.exe executable. (I don't know whether using Sun's downloaded installer will do this - it may still require admin privileges.)
    You're in an area where you'll probably have to do some experimentation. I would address the JNLP questions to the Java Web Start forum, there are some good people that monitor that forum.

  • Need to install JRE 1.1.8 as Netscape-Plugin

    Hi,
    I need to install JRE 1.1.8 as an plugin for Netscape 4.75/78.
    Downloaded and installed JRE 1.1.8 from javasoft, but the
    JRE is not listed in Netscape plugin-list.
    How to register JRE 1.1 as an plugin ?
    Thanks in advance.
    DFA

    Hi ,
    After installing the plug-in check in the Netscape browser Help(option)-->About Plug-in's whether 1.1 version is there or not. If it is there then I think it will support.
    Anil.
    Developer Technical Support
    Sun Microsystems Inc,
    http://www.sun.com/developers/support

  • Force software reboots after Software Updates install, and do a WUA rescan upon reboot and install any remaining patches?

    Running SCCM 2007 SP2 R3 and having two big issues with SUP that impacted us severely with the February patches.  An RDP patch from November broke our 2-factor authentication (2FA) method, so we stopped deployment until Microsoft could fix the
    patch.  Rather than fixing the patch...they made a patch for the patch.
    We divided our servers up into multiple Day/Time maintenance windows, like SUN, MON, TUE, and from 0200 to 0600 AM, and we run deployments weekly as needed.
    There doesn't seem to be a way in SUP to "let SCCM control reboot" and ALWAYS reboot (whether the patches request it or not), and, as a result, we seem to have an awful lot of servers that are stuck at "reboot pending" after patch installation,
    and have actually taken to using a third-party program to reboot the servers.
    There also doesn't seem to be a way to force SCCM SUP to rescan the computer after the patch is applied until after a day...or, for servers, a week (from Mon to Mon, for example).
    What happened this time around was that the first patch installed and broke 2FA, the second patch is not recognized as being needed until after a reboot and rescan--since that did not occur, it took up to a week to get the second patch installed (IF the
    server ever was rebooted), which...was unacceptable.
    Soooo...how can I:
         1.  ALWAYS force SCCM to reboot after patching (60-min countdown if user logged-on), just like we do with our normal deployment advertisement, package, program.
         2.  Force a WUA scan after this reboot, so, if remaining patches from this patch group are needed, they get detected and installed, and hopefully this will all work within the 4-hour window (we might be able to extend it earlier,
    but, not past 0600).
    Thanks!

    Thanks, Don.  OK, if there is a "reboot required" returned at the end of the patch deployment...shouldn't the computer then reboot?  We see a large number of computers with "reboot required" that never reboot.  Is there something wrong in
    the setup to stop a reboot from occurring?
    Thanks.
    It looks like you've continued the conversation with Jason and it's taken an interesting turn ;)
    But, in the case where a reboot_required is the returned resultcode, CCM will look to your MW and deployment settings, and the context of the installation event (enforcement etc), to determine if the reboot request should be honoured or refused.
    You should be able to see all the to-and-fro of this logic within the client logfiles, as it's occurring (or after the event).
    If you do some spelunking into the logfiles, don't forget to look at windowsupdate.log (the WUAgent logfile), as that can, with the CCM logfiles, paint a more complete picture of the "flow of things".
    This does all assume that the client machine is in a healthy and predictable state to begin with.
    If there is already some other pending_reboot hiding in the background, or, WUAgent is running with it's own configuration (potentially fighting with CCM), or, it's Win8 with the "Automatic Maintenance" scheduled task, you can get some unexpected behaviour
    (but usually that is unexpected reboot, rather than unexpected no-reboot)
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Installing JRE 1.4 while JRE 1.5 has been installed.

    We have developed an application that uses JRE 1.4. Initially it can be launched from Internet Explorer using Java Web Start, and it directs you to download JRE 1.4 if it does not already installed in the server. We have already JRE 1.5 installed in the server, and when we start our application, it points us to a URL and it downloads and installs JRE 1.4 in the server. The problem is that if we start our application using Internet Explorer, it does not recognize JRE 1.4 installation, and it again points us to the same URL to download and install JRE 1.4. When we check the server, we see that it is installed properly. We don�t see this problem if we use Netscape or Firefox browser. This problem is also valid if you already have JRE 1.4 and trying to install JRE 1.3. Has anyone encountered with this problem before? If so, how you have fixed it? Many Thanks

    I think your jre 1.4 is not enabled in java web start. open File->Preference window in java web start. go to java tab. Check the jre is enabled or not.

  • Install JRE and OpenJDK Side-by-Side [Unecessary - So Solved]

    As far as I know this is impossible, but if there is a way to install JRE and OpenJDK side-by-side, that would be great.
    The reason I would like this is that there is a specific webserver I access that simply will not work with OpenJDK. It's a known issue that may or may not be fixed any time soon. On the other hand, I would like to install freeCAD, but this depends on OpenJDK and not JRE.
    So as of right now, there is no way for me to have freeCAD installed and access this webserver. Now if JRE and OpenJDK were installed side by side, then this wouldn't be a problem. The other option, is letting users install freeCAD with and OpenJDK or JRE dependency, whichever best suits them.
    Is anybody else in a similar boat as this?
    Last edited by fini_fly (2009-12-17 16:56:07)

    tdy wrote:
    fini_fly wrote:I would like to install freeCAD, but this depends on OpenJDK and not JRE.
    Where do you see this requirement?  I don't see anything that specifically depends on openjdk6.  The only java deps I see are in opencascade.  It depends on java-runtime and makedepends on java-environment, which can be satisfied by jre + jdk.
    When I went to install, it was forcing me to install OpenJDK and uninstall JRE.

  • Installing JRE and webserver on client machine

    I want to deploy J2se application having tomcat webserver and mysql database.This application is to be installed on client's machine from CD as a single-click application.How can we setup JRE and webserver using JavaWebStart?
    Is it possible to install JRE using WebStart?This is most urgent requirement for us.Any who worked on it?Pease help!!!!

    You need a JRE installed to run Java WebStart (because Java WebStart is a Java program itself). However, this does not need to be the same JRE that your application uses, because you can specify the JRE to use in your JNLP file and Java WebStart will automatically (most of the time) download and install the correct JRE.
    As to the original question of installing a webserver and database on the client: you will have to distribute both as (or in) one or more jar file (which are likely to be quite large), unpack the jar file(s) on the local machine and then run an installation script, using Runtime.exec(). This requires the user to grant "all-permissions" to your WebStart app, as well a fool-proof installation script for the webserver and database.
    Webstart may not be the ideal solution for your situation. If the users are always connected to the network, why the local webserver and database (can't they just use one connected to the net)? If the users aren't connected to a network, why Webstart?

Maybe you are looking for