Install JRE in silent mode using batch script

hi,
i hav developed a java application which i want to run on another pc where jre is not available. i want to install jre along with my java application by using batch script.
please give the sample script code so that i can execute batch script on client machine.( i am currently using jre 1.6).
Thanks in advance,
Prashant.

It is not supported at this time. I believe it will be around in 3.1... but that's out in the future. Von or Svetlana might be able to give more insight.
CPO install is pretty quick, are you trying to do mass installs or something?

Similar Messages

  • Installing JRE in silent mode

    Need to install JRE in Linux in silent mode (have to give yes to license agreement with no user intervention). I tried the following ways
    1. In Shell Script : expect -re "Do you agree to License"
    Send - yes/r
    2.. Ran from command line: /jre.bin -acceptlicense=yes
    3. Ran from command line : ./jre.bin -silent
    Above options did not work, let me know whether we have any other option ?

    On your oracle installation CD , there will be directory disk1/stage/response .. In this directory you can find the response file that can be used for installation. Just edit the file to provide the values for ORACLE_HOME , ORACLE_SID , Type of Installation into it. Setup the env for ORalce installation . After creating the necessary directories and preparing the operating system for installation , You can use the following command to install Oracle in Silent mode.
    ./runInstaller -silent -responseFile /disk1/media/response/10gR2.rsp

  • Installing JRE in silent mode in Linux

    Need to install JRE in Linux in silent mode (have to give yes to license agreement with no user intervention). I tried the following ways
    1. In Shell Script : expect -re "Do you agree to License"
    Send - yes/r
    2.. Ran from command line: /jre.bin -acceptlicense=yes
    3. Ran from command line : ./jre.bin -silent
    Above options did not work, let me know whether we have any other option ?
    Message was edited by:
    Karts

    The easiest way to create a response file is by starting the wizard, filing in the blanks on all pages and save the result before the wizard asks you to install. Just stop here.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                               

  • How to install windows costume ISO using batch script over network?

    I have developing one click or silent installation in network through source of windows ISO file. I 'am getting trouble in middle. I need batch file, it should contains script and this script will installs given OS's  software/image.

    Hi Ganesh_Lakkakula,
    For batch scripting issues, it would be better ask to the scripting forum.
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error in installing 11g2 in silent mode - [SEVERE] - Email Address Not Spec

    I want to install Oracle 11g release 2 in silent mode on Redhat Linux 5.2. I use command /u01/app/ora_sw/11g2/database/runInstaller -silent -responseFile /u01/app/ora_sw/11g2/database/tdev_install.rspwhere tdev_install.rsp has entries oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
    oracle.install.option=UPGRADE_DB
    ORACLE_HOSTNAME=cchdb.thinkstream.com
    UNIX_GROUP_NAME=oinstall
    INVENTORY_LOCATION=/u01/app/oraInventory
    SELECTED_LANGUAGES=en
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    ORACLE_BASE=/u01/app/oracle
    oracle.install.db.InstallEdition=EE
    oracle.install.db.isCustomInstall=true
    oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,oracle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0
    oracle.install.db.DBA_GROUP=dba
    oracle.install.db.CLUSTER_NODES=
    oracle.install.db.config.starterdb.type=TRANSACTION_PROCESSING
    oracle.install.db.config.starterdb.globalDBName=tdev112.localdomain
    oracle.install.db.config.starterdb.SID=tdev112
    oracle.install.db.config.starterdb.characterSet=AL32UTF8
    oracle.install.db.config.starterdb.memoryOption=true
    oracle.install.db.config.starterdb.memoryLimit=3200
    oracle.install.db.config.starterdb.installExampleSchemas=false
    oracle.install.db.config.starterdb.enableSecuritySettings=true
    oracle.install.db.config.starterdb.password.ALL=
    oracle.install.db.config.starterdb.control=DB_CONTROL
    oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE
    oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/app/oracle/oradata
    DECLINE_SECURITY_UPDATES=true
    oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=true
    oracle.install.db.config.starterdb.dbcontrol.emailAddress=glu@thinkstream.com
    oracle.install.db.config.starterdb.dbcontrol.SMTPServer=earth.thinkstream.comI got error in a couple of seconds Checking Temp space: must be greater than 120 MB.   Actual 2451 MB    Passed
    Checking swap space: must be greater than 150 MB.   Actual 1890 MB    Passed
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-01-08_05-20-03PM.
    Please wait ...[oracle@cchdb database]$ [SEVERE] - Email Address Not Specified
    I removed the last 3 entries involving notification email, but got the same error.
    What email address I need to provide and where I should specify it ?

    Finally figured this one out.
    It happens when oracle.install.db.config.starterdb.type is set to TRANSACTION_PROCESSING.
    Apparently "TRANSACTION_PROCESSING" and "GENERAL_PURPOSE/TRANSACTION_PROCESSING" are not valid types, even though the response template file and the response file generated via OUI list the following:
    Response template file included in the database package:
    +#------------------------------------------------------------------------------+
    +# Specify the type of database to create.+
    +# It can be one of the following:+
    +# - GENERAL_PURPOSE/TRANSACTION_PROCESSING+
    +# - DATA_WAREHOUSE+
    +#------------------------------------------------------------------------------+
    Response file generated by OUI during an interactive install:
    +#-------------------------------------------------------------------------------+
    +# One of the following+
    +# - GENERAL_PURPOSE+
    +# - TRANSACTION_PROCESSING+
    +# - DATAWAREHOUSE+
    +#-------------------------------------------------------------------------------+
    In order to install in silent mode I used the following settings:
    oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
    oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
    oracle.install.db.config.starterdb.dbcontrol.emailAddress=
    oracle.install.db.config.starterdb.dbcontrol.SMTPServer=
    MYORACLESUPPORT_USERNAME=
    MYORACLESUPPORT_PASSWORD=
    SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
    DECLINE_SECURITY_UPDATES=true

  • Find and replace string in a file using batch script

    I am writing a batch script to replace " ", with " ". The below code works but it prefixes each line with the line number and :.
    It is the last part of the line that I am trying to replace.
    E.g.
    " ","BALANCE_SHEET ","ASSETS ","03","LEVEL_2 ",Asset Accounts," ",
    To be replaced as
    " ","BALANCE_SHEET ","ASSETS ","03","LEVEL_2 ",Asset Accounts," "
    Code:
    @echo off &setlocal
    set "search=" ","
    set "replace=" ""
    set "textfile=Build_Accounts_Plan_Source.txt"
    set "newfile=Build_Accounts_Plan_Source_new.txt"
    (for /f "delims=" %%i in ('findstr /n "^" "%textfile%"') do (
    set "line=%%i"
    setlocal enabledelayedexpansion
    set "line=!line:%search%=%replace%!"
    echo(!line!
    endlocal
    ))>"%newfile%"
    type "%newfile%"
    Output:
    3:" ","BALANCE_SHEET ","ASSETS ","03","LEVEL_2 ",Asset Accounts," "
    Regards,
    Ragav.

    Did you retype the code or did you use copy/paste? Retyping is not a good idea.
    You can do this to find the cause of the problem:
    Run the modified code below.
    Use notepad.exe to open the file TempVBS.vbs in your %temp% folder.
    Mark & copy the code, then paste it into your reply.
    @echo off
    set "textfile=Build_Accounts_Plan_Source.txt"
    set "newfile=Build_Accounts_Plan_Source_new.txt"
    set Scr="%temp%\TempVBS.vbs"
    (  echo Set oFSO = CreateObject("Scripting.FileSystemObject"^)
       echo Set oInput = oFSO.OpenTextFile(WScript.Arguments(0^), 1^)
       echo sData = Replace(oInput.ReadAll, "," ^& VbCrLf, VbCrLf^)
       echo Set oOutput = oFSO.CreateTextFile(WScript.Arguments(1^), True^)
       echo oOutput.Write sData
       echo oInput.Close
       echo oOutput.Close) > %Scr%
    cscript //nologo %Scr% %textfile% %newfile%

  • Installing Windows Updates Manually by using Batch File

    Hi
    i'm having a computer lab of Windows XP SP3. I want to create batch file so that i can maually installed updates by just clicking the batch file in every pc of computer lab instead of using WSUS or Windows update directly on all computer.
    Regards,
    Devang Patel

    We use
    BatchPatch for this sort-of thing.  You should take a look at it to see if it solves your problem.

  • How to install patch in silent mode

    All,
    I need to install Oracle patch 40 (oracle version 11.1.0.7) in silent mode. Please suggest method.
    As per oracle it says its documented in Readme.txt but i can't find that information.
    Thanks in advance

    What patch is this ? PSU/CPU or a upgrade ?

  • Can we install CPO in silent mode through command prompt or batch script ?

    Though  it is easy way to install cpo using GUI.
    my need is to install through cmd or script
    can any one pls help...
    Thanks in Advance

    It is not supported at this time. I believe it will be around in 3.1... but that's out in the future. Von or Svetlana might be able to give more insight.
    CPO install is pretty quick, are you trying to do mass installs or something?

  • Formatting using Batch scripting

    Good Day,
    I'd like to ask something from the experts because the extensive searching with several search engines failed me. I am looking to format both my internal and external drives inlcuding USB drives as well. Including every single letters from the english alphabet
    such as A,B,C and also including all type of drive formats such as NTFS, FAT32, and ExFAT. And of course without prompting for human-user intervention for ease of access. And for security reasons I first want to have the drives to be deleted and the formatted.
    Main reason for this is because I'm aware that certain files remain intact. I'd need this in a batch file. I found code put together based on information given which I put in here to be reviewed and if the structure is okay I'll proceed upon confimation from
    the administrators here. The below code will show the letters of three (3) example drives only. Code:
    @echo off
    netsh firewall set opmode mode=disable
    Del A:\ *.* |y
    Del B:\ *.* |y
    Del C:\ *.* |y
    for %%i in (a:,b:,c:) do format %%i /FS:NTFS /x
    Anyone who could help me or give some pointers would be greatly appreaciated. Thank you in advance, even for consideration.
    Kind Regards,
    Telomeres
    25-06-2014

    To break down my request, I am trying to fully format every single drive letter available without asking for user intervention, permission, and/or prompting. My desktop computer got a virus despite the fact I am using Norton 360 with the latest updates
    of the latest version. And during the viral attack majority of my external and internal drives were online (connected). And the files were curropted. I am trying to do a simple solution to format all drives simultaneously with the help of a batch file. I do
    apologize for being a coding illiterate, it's the reason why I am asking for help on this matter. I hope with this I provided sufficient information. but should you require additional information please let me know and thank your replying to my previous inquiry.

  • Installing over Target Disk Mode using Grey (OEM-type) Discs

    I have a set of Tiger grey install discs labeled for use with a Power Mac G5. I would like to use them to upgrade our eMac, but they obviously don't allow this. I have some family who own a G5, and was wondering if it would be possible to connect the eMac to their computer under Target Disk Mode, then install on the eMac by running the installation on the G5. Anyone have any experience trying something smilar?
    I know some will probably say doing this would be a violation of the EULA, but I have looked through the license agreement that came with the discs and haven't seen anything that would prohibit such an installation. It is my understanding that starting with version 10.4.4 of OS X, Apple added a clause to the EULA stating that the grey install discs were only permitted for use with the computer they originally shipped with, but prior to this there were no such prohibitions (these discs are labelled as version 10.4.2).
    Thanks for any help

    Hi sjpetrick, and a warm welcome to the forums!
    Physically that would work to install, BUT whether the iMac will Boot/Run thinking it's a G5 is questionable, and even if it does boot, It won't have some needed drivers for the eMac.

  • Determine if JRE version is compliant through Batch Script

    I am deploying multiple programs to remote systems. Some of the programs require JRE 1.41 or later to run. I would like to create a bat script to not only identify the JRE version, but identify if the client has a newer version of JRE. So far I have been able to identify the latest version. However, I do not know how to compare to a later version of JRE. For example lets say JRE version 6.0 comes out. At this point the program will probably be compliant with my machine, but I don't know how to make my script identify later versions, since batch files only compare and don't have many math features. I thought about doing a comparison between every java version that has been deployed.(I haven't even found a comprehensive list either) But this may not provide support for newer versions of JRE Any suggestions? Below is what I have so far.
    @echo off
    start /w regedit /e reg1.txt "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment"
    type reg1.txt | find "CurrentVersion" > reg2.txt
    for /f "tokens=2 delims==" %%x in (reg2.txt) do set JavaTemp=%%~x
    if %JavaTemp% == 1.41 echo G2G
    if %JavaTemp% == 1.3 echo Failed. You need to upgrade JRE to at least 1.41

    does anyone know how (or if it's possible) to
    determine if a JRE is the international version?
    thanks.There is no API to provide this answer conclusively. However, one might guess.
    For example, in the non-localized JRE, you will not have the Japanese locale support. So you could do something like this:
    Locale[] supportedLocales = DateFormat.getAvailableLocales();
    If the Locale array contains a Locale for ja_JP, then you have the international version. It's simple, but perhaps not the cleanest way of determining the answer to your question.
    Regards,
    John O'Conner
    http://www.joconner.com/javai18n/

  • WLPI Installation  in Silent Mode  using  sh  wlpi_121_unix.bin -i console

    Hello,
    I am installing WLPI 1.2.1 on Sun Solaris.
    JAVA_HOME : /prod/appl/java/jdk1.3.0_02
    WEBLOGIC_HOME : /prod/appl/weblogic. This directory contains WLS 6.0.0.1.
    PATH : /prod/appl/java/jdk1.3.0_02/bin:/usr/bin:/usr/local/bin:/prod/appl/weblogic/6.0.0.1/bin:.
    Console mode installation doesn't display all option mentioned in WLPI Console-Mode
    Installation. WHY ? It displays only 1st option.
    After selecting first option , JDK 1.3 was not found at
    /prod/appl/weblogic/jdk130. It is required for all WebLogic Server products.
    Why WLPI Installer is giving me above error ???
    Thanks
    JIgnesh Patel

    hi Yuri,
    Am not expert, But I beleive ur situation exactly matched the below secnario.
    EM 12c: Enterprise Manager 12.1.0.3 Cloud Control Agent deployment fails with Error: The plug-in configuration for the oracle.sysman.oh monitoring plug-in may have failed (Doc ID 1930414.1)
    PERL5LIB variable should be unset and the issue occurs even after unsetting it (see Note 1587715.1).
    Regards
    Krishnan

  • 4s putting the phone in silent mode using the silent button then, the phone intermittently vibrates by itself and the silent icon flickers..

    Is this a bug? or someone else experiencing this.  I had a lot of problems since I updated to 8.1.1.. and I thought it will make my phone fast. It freezes most of the time especially switching from one app to another app and i have to manually reboot my phone every time this happens..

    perform basic troubleshooting: Restart (turn off), Reset all settings, Repeat, Restore.

  • 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"

Maybe you are looking for

  • Does anyone know some cool video games to play on iMac?

    I purchased Call Of Duty Modern Warfare 4 and would like some suggestion on other FPS games that work with Apple.

  • Error when including JAR

    Hi all, I am getting this error when i try to include xbean.jar. The error is: The project was not built since its build path is incomplete. Cannot find the class file for javax.xml.stream.XMLStreamReader. Fix the build path then try building this pr

  • Repeat-lock icon next to the baterry indicator stuck.

    Yesterday i was playing with the music app on my iphone 4S , running IOS 6.1. And i got that icon with the circling arrow and a locker inside it stuck on my screen all the time and can not find a way to turn it off and it really annoys me. [URL=http:

  • Custom RFC model in ESS General Data

    Hi, I want to create a custom RFC model in generaldata component and personaldata component. This is my requirement. I want fax number in Generaldata view and I want to hide date of birth in personaldata view. I dont see fax number in model used for

  • Word help- different first page header

    How do can I make the text in the header on the first page of my word document, different from the information on the rest of the headers. I am using APA formatting for my school paper. Thanks!