AddOnRegDataGen.exe in Batch File

I'm trying to follow these instructions from Frank Moebius:
please note that AddOnRegDatGen is batch capable!!!
Here you go:
Calling convention (cmdline parameters):
AddOnRegDataGen.exe <raw xml> <InstallerVersion> <Installer> <Uninstaller> <Add-On-Exe>
Sample:
AddOnRegDataGen.exe MySampleAddOn.xml 1.0 SampleSetup.exe SampleSetup.exe MySampleAddOn.exe
The „<raw xml>“:
<AddOnInfo partnernmsp="<Your Namespace>" contdata="my cont data" addonname="My Add-On" addongroup="M" esttime="300" instparams="" uncmdarg="" partnername="My Comp" />
Regards,
Frank
When I run AddOnRegDataGen.exe as described above, it fails without giving any indication why.
I thought perhaps Frank had only given part of the XML file as an example, and so changed mine to be a full one, including the <?xml?> header, but still AddOnRegDataGen.exe fails.
Does anyone still do this? If you have it an it works with a modern SDK, can you give me an example XML file and batch command line that will work?
I'm writing for Business One version 8.81, using the SDK running on Windows XP.

Hi Charles,
If you use one of the installers from the B1DE then it automatically creates batch and xml files that can be used to execute the AddOnRefDataGen program to generate your ard file.
Here's a sample batch file
"D:\Program Files\SAP\SAP Business One SDK\Tools\AddOnRegDataGen\AddOnRegDataGen.exe" "D:\SDK Development\MyAddonProject\AddOn_Installer\AddOnRegDataGenFile\AddOn_Installer.xml" "8.80.00.05" "D:\SDK Development\MyAddonProject\AddOn_Installer\bin\AddOn_Installer.exe" "D:\SDK Development\MyAddonProject\AddOn_Installer\bin\AddOn_Installer.exe" "D:\SDK Development\MyAddonProject\bin\Release\MyAddonProject.exe"
So the batch file executes the AddOnRegDataGen app and passes it the following parameters:
1) The location of the xml file that contains the addon settings
2) The version number
3) The path to the addon installer
4) The path to the addon uninstaller (can be the same as the installer or a different executable)
5) The path to the addon executable
Obviously all of these paths need to be correct for your system otherwise no ard file will be generated.
Your example xml file, from Frank, looks correct and doesn't need xml tags (although there is now another attribute called unesttime which is the estimated uninstall time, similar to esttime).
Kind Regards,
Owen

Similar Messages

  • Running AddOnRegDataGen.exe in batch

    I am running AddOnRegDataGen.exe in batch mode using the command line
    “AddOnRegDataGen.exe MyAddOn.xml 1.0 setup.exe setup.exe MyAddOn.exe”.
    MyAddOn.xml has the following contents:
    <AddOnInfo partnernmsp="MC" contdata="[email protected]" addonname="My AddOn" addongroup="M" esttime="120" instparams="/z" uncmdarg='/z"uninstall" /x' partnername="MyCompany ASA" />
    It works OK except from one detail; I cannot figure out how to set Estimated Uninstall Time in the ard-file. The esttime value in the XML-file only affects Estimated Install Time, while Estimated Uninstall Time still has the value 0.
    Does anyone know how to do this?
    regards
    Vegar

    Hi Vegar,
    There is a package called B1DE you can download from B1 SDN page -> SDK Tools. This package contains among others a simple installer creating automatically for you the .ard and setup.exe for your addon.
    Please run the Simple installer wizard from Visual Studio .NET (2003 or 2005) and you will have a .bat and a .xml files automatically generated in a directory called AddOnRegDataGen. This 2 files contains all you need to run the AddOnRegDataGen.exe in batch mode.
    Here you have a sample of the .bat:
    "AddOnRegDataGen.exe" "B1AddOnInstallerNET5.xml" "1" "B1AddOnInstallerNET5.exe" "B1AddOnInstallerNET5.exe" "AddOn.exe"
    And the B1AddOnInstallerNET5.xml pointed from the .bat:
    <AddOnInfo partnernmsp="SAP" contdata="Support" addonname="Addon1" addongroup="M" esttime="180" instparams="" uncmdarg="/x" partnername="SAP" unesttime="180" />
    Hope it helps
    Trinidad.

  • Problem with running rhcl.exe in batch file

    Hi,
    I'm running Robohelp 8 and trying to use rhcl.exe to generate multiple help projects. I'm having a problem with the folder where the rhcl.exe is generating the web help. It seems to ignore the "-o" switch and gets the generation folder from the project all the time. As you can see from the log file below, the exe appears to pick up the "-o" path  (......\Test\Opportunities.htm), but writes the generated files to the path in the project (.....\Opportunities\index.htm).
    Anyone else come across this problem?
    MY BATCH FILE IS:
    "C:\Program Files\Adobe\Adobe RoboHelp 8\RoboHTML\rhcl.exe" "C:\Data\RoboHelp\RoboHelp Projects\SubProjects\SupplierPortal\Opportunities\Opportunities.xpj" -l Webhelp -o "C:\Data\RoboHelp\GeneratedWebHelp\SupplierPortal\mergedProjects\Test" -g "C:\Data\RoboHelp\GeneratedWebHelp\Generate.log"
    THE LOG FILE CREATED IS:
    Adobe (R) RoboHelp Project Command Line Compiler version 8.0.0.203
    Copyright (C) 2006-2007, Adobe Systems Incorporated and its licensors. All rights reserved.
    Project: C:\Data\RoboHelp\RoboHelp Projects\SubProjects\SupplierPortal\Opportunities\Opportunities.xpj
    Layout: WebHelp.
    Output: C:\Data\RoboHelp\GeneratedWebHelp\SupplierPortal\mergedProjects\Test\Opportunities.htm.
    Scanning project for compilation....
    Scanning finished.
    Warning: No baggage file description.
    Starting compilation...
    WebHelp preprocessor 8.0.0.203
    Compiling C:\Data\RoboHelp\GeneratedWebHelp\SupplierPortal\mergedProjects\Opportunities\index.htm ...
    Preparing to create WebHelp...
    Clearing output folder...
    Preparing files for WebHelp...
    Copying files...
    Updating files...
    Finished preparing in 1 sec(s)
    Initializing compiler...
    Generating WebHelp 5.50 (8.0.0.203)...
    Processing TOC data...
    Processing Context-sensitive-Help data...
    Updating HTML topics...
    Updating opportunities/e-auctions/how_do_i/creating_a_new_bid.htm...
    Updating opportunities/e-auctions/how_do_i/creating_a_response.htm...
    Updating opportunities/e-auctions/how_do_i/viewing_auction_details.htm...
    Updating opportunities/e-auctions/how_do_i/viewing_bid_details.htm...
    Updating opportunities/e-auctions/how_do_i/viewing_a_list_of_auctions.htm...
    Updating opportunities/e-auctions/how_do_i/withdrawing_from_an_auction.htm...
    Updating opportunities/e-auctions/screen_level_help/list_of_auctions.htm...
    Updating opportunities/e-auctions/screen_level_help/new_bid.htm...
    Updating opportunities/e-auctions/screen_level_help/view_auction_details.htm...
    Updating opportunities/e-auctions/screen_level_help/view_bid_details.htm...
    Updating opportunities/e-auctions/introduction_to_e-auctions.htm...
    Updating opportunities/introduction_to_opportunities.htm...
    Finished updating HTML topics in 0 sec(s) : total 12 topic(s).
    Processing Full-text-search data...
    Finished processing Full-Text-Search data in 0 sec(s)
    Applying WebHelp 5.50 Template...
    Finished applying Template in 1 sec(s)
    Processing Mark of the Web...
    Finished compiling WebHelp in 3 sec(s)
    Compilation complete.

    Hi again
    And that's why we call them bugs.
    Did you remember to report it as same to Adobe? The link is in my sig.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Can Vision Builder launch an executable file (exe) or batch file (bat)?

    I know it can write system variables or read/write ini but am hoping there is a way to launch an executable.   I do not have LabVIEW, only Vision Builder.
    Thanks!
    Pete

    Hi Pete,
    Unfortunately, Vision Builder for Automated Inspection (VBAI) does not include any native feature to launch an executable without also using LabVIEW. If you were using LabVIEW, you could use VBAI to launch a LabVIEW VI which then in turn launches an executable. You could also create a custom VBAI step using LabVIEW and an additional toolkit, but again this will not be possible without additional software. 
    Let us know if we can offer any more information!
    Best,
    Andy C.
    Applications Engineer
    National Instruments 

  • Executing sqlplus in windows batch file - URGENT

    Hi
    Is it possible to run sqlplus.exe thru batch file as follows.
    set PATH=%PATH%;C:\oracle\product\10.2.0\client_1\BIN;
    host sqlplus userid=test1/test12@testdev
    sELECT * FROM CASESTATUS
    Thanks
    murali

    hI
    It did not work. I have this question.
    1. Do I have to run this opening SQL/PLUS and then submit
    @C:\Test\SQL2.bat
    2. Or from Windows command run SQL2.Bat
    I tried both of them , it did not work. If I try from windows , I am getting SQLPlus connection window at all.
    Please help me.
    Murali
    set PATH=%PATH%;C:\oracle\product\10.2.0\client_1\BIN;
    sqlplus userid=test1/test12@testdev
    Ok so far but your select needs to be in a file if you want this to be executed.
    Put this in, f.ex, run.sql
    >>
    sELECT * FROM CASESTATUS
    >>
    then you can use
    sqlplus userid=test1/test12@testdev @run.sql <complete path if needed>

  • Error while calling pscp.exe through a batch file which is called in SSIS Execute Process Task

    Hi,
    I am using Windows Server 2012 R2 Standard, SSIS 2012. I am trying to copy files from a remote location by calling pscp.exe through a batch file (FileCopy.bat at location M:\bin\) which is referenced in a SSIS Execute Process Task. My batch file content
    is,
    ECHO OFF
    echo. >> M:\Prod\bin\SourceFile_FileLog.txt
    echo %date% - %time% - Copy Start (XYZ_a201211155952avx0_69999.NOR.gz) >> M:\Prod\bin\SourceFile_FileLog.txt
    M:\ProdFiles\bin\pscp.exe -unsafe -scp -pw aaaaa myuser@sourceserver:/ABC_data/*.NOR.gz M:\Prod\FromMediation\
    echo %date% - %time% - Copy Complete >> M:\Prod\bin\SourceFile_FileLog.txt
    The error I am getting is 
    [Execute Process Task] Error: In Executing "M:\bin\FileCopy.bat" "" at "", The process exit code was "1" while the expected was "0".
    Exactly same setup but using Windows Server 2003 R2 Enterprise and SSIS 2005, this works fine and copies the files successfully.
    Please provide some guidance on this.
    Thank you!
    'In Persuit of Happiness' and ..... learning SQL.

    Hi,
    This is what I am getting while running the batch file from command prompt
    M:\bin\mttrb1>CDR_FileCopy
    M:\bin\mttrb1>ECHO OFF
    The system cannot find the path specified.
    The system cannot find the path specified.
    scp: M:\Prod\FromMediation\: Cannot create file
    scp: M:\Prod\FromMediation\: Cannot create file
    scp: M:\Prod\FromMediation\: Cannot create file
    The system cannot find the path specified.
    'In Persuit of Happiness' and ..... learning SQL.

  • Need help with batch file for javac.exe and java.exe

    I have this in my batch file:
    c:\jdk1.3.1_05\bin\javac
    What symbol do I need to be able to run this from cprompt with any file following it

    Thanks could remember that for nothing

  • Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch files

    GUIDE TO RUNNING EXTERNAL JOBS ON 10g WITH DBMS_SCHEDULER
    NOTE: Users using 11g should use the new method of specifying a credential which eliminates many of the issues mentioned in this note.
    This guide covers several common questions and problems encountered when using
    dbms_scheduler to run external jobs, either on Windows or on UNIX.
    What operating system (OS) user does the job run as ?
    External jobs which have a credential (available in 11g) run as the user
    specified in the credential. But for jobs without credentials including
    all jobs in 10gR1 and 10gR2 there are several cases.
    - On UNIX systems, in releases including and after 10.2.0.2 there is a file $ORACLE_HOME/rdbms/admin/externaljob.ora . All external jobs not in the SYS schema and with no credential run as the user and group specified in this file. This should be nobody:nobody by default.
    - On UNIX systems, in releases prior to 10.2.0.2 there was no "externaljob.ora" file. In this case all external jobs not in the SYS schema and with no credential run as the owner and group of the $ORACLE_HOME/bin/extjob file which should be setuid and setgid. By default extjob is owned by nobody:nobody except for oracle-xe where it is owned by oracle:oraclegroup and is not setuid/setgid.
    - On Windows, external jobs not in the SYS schema and with no credential run as the user that the OracleJobScheduler Windows service runs as. This service must be started before these jobs can run.
    - In all releases on both Windows and UNIX systems, external jobs in the SYS schema without a credential run as the oracle user.
    What errors are reported in SCHEDULERJOB_RUN_DETAILS views ?
    If a job fails, the first place to look for diagnostic information is the SCHEDULERJOB_RUN_DETAILS set of views. In 10gR2 and up the first 200 characters of the standard error stream is included in the additional_info column.
    In all releases, the error number returned by the job is converted into a
    system error message (e.g. errno.h on UNIX or net helpmsg on Windows) and that
    system error message is recorded in the additional info column. If there is no
    corresponding message the number is displayed.
    In 11g and up the error number returned by the job is additionally recorded in
    the error# column. In earlier releases 27369 would always be recorded in the
    error# column.
    Generic Issues Applicable to UNIX and Windows
    - The job action (script or executable) must return 0 or the job run will be marked as failed.
    - Always use the full pathname to executables and scripts.
    - Do not count on environment variables being set in your job. Make sure that the script or executable that your jobs runs sets all required environment variables including ORACLE_HOME, ORACLE_SID, PATH etc.
    - It is not recommended to pass in a complete command line including arguments as the action. Instead it is recommended to pass in only the path to and name of the executable and to pass in arguments as job argument values.
    - Scripts with special characters in the execution path or script name may give problems.
    - Ensure that the OS user your job runs as has the required privileges/permissions to run your job. See above for how to tell who the job runs as.
    - External job actions cannot contain redirection operators e.g. > < >> | && ||
    - In general try getting a simple external job working first e.g. /bin/echo or ipconfig.exe on Windows. Also try running the job action directly from the commandline as the OS user that the job will run as.
    Windows-specific Issues
    - The OracleJobScheduler Windows service must be started before external jobs will run (except for jobs in the SYS schema and jobs with credentials).
    - The user that the OracleJobScheduler Windows service runs as must have the "Log on as batch job" Windows privilege.
    - A batch file (ending in .bat) cannot be called directly by the Scheduler. Instead cmd.exe must be used and the name of the batch file passed in as an argument. For example
    begin
    dbms_scheduler.create_job('myjob',
       job_action=>'C:\WINDOWS\SYSTEM32\CMD.EXE',
       number_of_arguments=>3,
       job_type=>'executable', enabled=>false);
    dbms_scheduler.set_job_argument_value('myjob',1,'/q');
    dbms_scheduler.set_job_argument_value('myjob',2,'/c');
    dbms_scheduler.set_job_argument_value('myjob',3,'c:\temp\test.bat');
    dbms_scheduler.enable('myjob');
    end;
    /- In 10gR1 external jobs that wrote to standard output or standard error streams would sometimes return errors. Redirect to files or suppress all output and error messages when using 10gR1 to run external jobs.
    UNIX-specific Issues
    - When running scripts, make sure that the executable bit is set.
    - When running scripts directly, make sure that the first line of the script in a valid shebang line - starting with "#!" and containing the interpreter for the script.
    - In release 10.2.0.1, jobs creating a large amount of standard error text may hang when running (this was fixed in the first 10.2.0.2 patchset). If you are seeing this issue, redirect standard error to a file in your job. This issue has been seen when running the expdp utility which may produce large amounts of standard error text.
    - the user that the job runs as (see above section) must have execute access on $ORACLE_HOME/bin and all parent directories. If this is not the case the job may be reported as failed or hang in a running state. For example if your $ORACLE_HOME is /opt/oracle/db then you would have to make sure that
    chmod a+rx /opt
    chmod a+rx /opt/oracle
    chmod a+rx /opt/oracle/db
    chmod a+rx /opt/oracle/db/bin
    - On oracle-xe, the primary group of your oracle user (if it exists) must be dba before you install oracle-xe for external jobs to work. If you have an oracle user from a regular Oracle installation it may have the primary group set to oinstall.
    - On oracle-xe, the extjobo executable is missing so external jobs in the SYS schema will not work properly. This can be fixed by copying the extjob executable to extjobo in the same directory ($ORACLE_HOME/bin).
    - Check that correct permissions are set for external job files - extjob and externaljob.ora (see below)
    Correct permissions for extjob and externaljob.ora on UNIX
    There is some confusion as to what correct permissions are for external job related files.
    In 10gR1 and 10.2.0.1 :
    - rdbms/admin/externaljob.ora should not exist
    - bin/extjob should be setuid and setgid 6550 (r-sr-s---). It should be owned by the user that jobs should run as and by the group that jobs should run as.
    - bin/extjobo should have normal 755 (rwxr-xr-x) permissions and be owned by oracle:oraclegroup
    In 10.2.0.2 and higher
    - rdbms/admin/externaljob.ora file must must be owned by root:oraclegroup and be writable only by the owner i.e. 644 (rw-r--r--) It must contain at least two lines: one specifying the run-user and one specifying the run-group.
    - bin/extjob file must be also owned by root:oraclegroup but must be setuid i.e. 4750 (-rwsr-x---)
    - bin/extjobo should have normal 755 (rwxr-xr-x) permissions and be owned by oracle:oraclegroup
    In 11g and higher
    Same as 10.2.0.2 but additionally bin/jssu should exist with root setuid
    permissions i.e. owned by root:oraclegroup with 4750 (-rwsr-x---)
    Internal Error numbers for UNIX on 10.2.0.2 or 10.1.0.6 or higher
    If you are not using a credential and are using version 10.2.0.2 or higher or 10.1.0.6 or higher you may come across an internal error number. Here are the meanings for the internal error numbers.
    274661 - can't get owner of or permissions of externaljob.ora file
    274662 - not running as root or externaljob.ora file is writable by group or other or externaljob.ora file not owned by root (can't switch user)
    274663 - setting the group or effective group failed
    274664 - setting the user or effective user failed
    274665 - a user or group id was not changed successfully
    274666 - cannot access or open externaljob.ora file
    274667 - invalid run_user specified in externaljob.ora file
    274668 - invalid run_group specified in externaljob.ora file
    274669 - error parsing externaljob.ora file
    274670 - extjobo is running as root user or group

    Hi Ravi,
    Can you help me...
    Hi All,
    I planned to create a job to do rman backup daily at 04:00 AM.
    1. I created a program as follows
    BEGIN
    DBMS_SCHEDULER.CREATE_PROGRAM(
    program_name => 'rman_backup_prg',
    program_action => '/u02/rmanback/rman.sh',
    program_type => 'EXECUTABLE',
    comments => 'RMAN BACKUP');
    END;
    my rman script is
    #!/usr/bin/ksh
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    export PATH=$PATH:/u01/app/oracle/product/10.2.0/db_1/bin
    /u01/app/oracle/product/10.2.0/db_1/bin/exp rman/cat@catdb file=/u02/rmanback/rm
    an_220108.dmp log=/u02/rmanback/rman_220108.log owner=rman statistics=none comp
    ress=n buffer=400000
    compress *.dmp
    exit
    2. I created a schedule as follows
    BEGIN
    DBMS_SCHEDULER.CREATE_SCHEDULE(
    schedule_name => 'rman_backup_schedule',
    start_date => SYSTIMESTAMP,
    end_date => '31-DEC-16 05.00.00 AM',
    repeat_interval => 'FREQ=DAILY; BYHOUR=4',
    comments => 'Every day at 4 am');
    END;
    3. I created ajob as follows.
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'rman_backup_job',
    program_name => 'rman_backup_prg',
    schedule_name => 'rman_backup_schedule',
    enabled=> true,
    auto_drop=> false
    END;
    While I am running the job I am getting the following error anybody help me.
    ORA-27369: job of type EXECUTABLE failed with exit code: Not owner
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 2
    If I removed "compress *.dmp" line in rman script it is working fine.
    /* additional Info from dba_scheduler_job_run_details as follows */
    ORA-27369: job of type EXECUTABLE failed with exit code: Not owner
    STANDARD_ERROR="
    Export: Release 10.2.0.3.0 - Production on Tue Jan 22 14:30:08 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Release 10.2.0.3.0 - Production
    Export"
    Regards,
    Kiran

  • PL/SQL w/ Java to run OS batch file crashes Oracle

    I followed instructions from "Ask Tom" on using PL/SQL with Java to execute an OS batch file. For testing purposes, my batch file does nothing more than display the date and time from the OS.
    However, when I run the PL/SQL that executes this simple batch file repeatedly - anywhere from two to four times, the Oracle instance crashes abruptly. Nothing is written to the alert log. No trace files are created.
    Here is a sample session:
    SQL*Plus: Release 9.0.1.3.0 - Production on Wed Mar 24 10:04:26 2004
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL> set serveroutput on size 1000000
    SQL> exec dbms_java.set_output(1000000) ;
    PL/SQL procedure successfully completed.
    SQL> begin
    2 rc('c:\dba_tools\jobs\test.cmd') ;
    3 end ;
    4 /
    C:\Ora9ir2\DATABASE>date /t
    Wed 03/24/2004
    C:\Ora9ir2\DATABASE>time /t
    10:05 AM
    PL/SQL procedure successfully completed.
    SQL> begin
    2 rc('c:\dba_tools\jobs\test.cmd') ;
    3 end ;
    4 /
    C:\Ora9ir2\DATABASE>date /t
    Wed 03/24/2004
    C:\Ora9ir2\DATABASE>time /t
    10:06 AM
    PL/SQL procedure successfully completed.
    SQL>
    Shortly after the second "run", Oracle crashed. All I received was the following error message:
    Unhandled exception in oracle.exe (ORAJOX9.DLL): 0xC0000005: Access Violation
    Here is the Java procedure at the heart of my PL/SQL:
    create or replace and compile
    java source named "Util"
    as
    import java.io.*;
    import java.lang.*;
    public class Util extends Object
    public static int RunThis(String args)
    Runtime rt = Runtime.getRuntime();
    int rc = -1;
    try
    Process p = rt.exec(args);
    int bufSize = 4096;
    BufferedInputStream bis =
    new BufferedInputStream(p.getInputStream(), bufSize);
    int len;
    byte buffer[] = new byte[bufSize];
    // Echo back what the program spit out
    while ((len = bis.read(buffer, 0, bufSize)) != -1)
    System.out.write(buffer, 0, len);
    rc = p.waitFor();
    catch (Exception e)
    e.printStackTrace();
    rc = -1;
    finally
    return rc;
    I am running Oracle 9i rel. 2 installed on my PC under Windows XP Professional (Service Pack 2). My knowledge of Java is next to nothing.
    Can anyone give me an idea(s) as to what might be causing Oracle to crash?
    Thanks.

    Using 9.2.0.4 I made the following adjustments and it seems to run as often as I care to do it:
    Java changes:
    create or replace and compile
    java source named "Util"
    as
    import java.io.*;
    import java.lang.*;
    public class Util extends Object
    public static void RunThis(java.lang.String args)
    Runtime rt = Runtime.getRuntime();
    int rc = -1;
    try
    Process p = rt.exec(args);
    int bufSize = 4096;
    BufferedInputStream bis =
    new BufferedInputStream(p.getInputStream(), bufSize)
    int len;
    byte buffer[] = new byte[bufSize];
    // Echo back what the program spit out
    while ((len = bis.read(buffer, 0, bufSize)) != -1)
    System.out.write(buffer, 0, len);
    rc = p.waitFor();
    catch (Exception e)
    e.printStackTrace();
    finally
    PL/SQL Wrapper :
    create or replace procedure rc (cmd VARCHAR2) as
    language java name 'Util.RunThis(java.lang.String)';
    Execution:
    begin
    rc('c:\dba_tools\jobs\test.cmd');
    end ;
    D:\oracle\ora92\DATABASE>date /t
    Fri 03/26/2004
    D:\oracle\ora92\DATABASE>time /t
    10:48 AM
    PL/SQL procedure successfully completed.
    SQL> /
    D:\oracle\ora92\DATABASE>date /t
    Fri 03/26/2004
    D:\oracle\ora92\DATABASE>time /t
    10:48 AM
    PL/SQL procedure successfully completed.
    SQL> /
    D:\oracle\ora92\DATABASE>date /t
    Fri 03/26/2004
    D:\oracle\ora92\DATABASE>time /t
    10:49 AM
    PL/SQL procedure successfully completed.
    SQL> /
    D:\oracle\ora92\DATABASE>date /t
    Fri 03/26/2004
    D:\oracle\ora92\DATABASE>time /t
    10:50 AM
    PL/SQL procedure successfully completed.
    SQL>
    The only thing I really changed was the reurn value from the java procedure. If it has a return value then it should be declared as a function, not a procedure. Since you probably (apparently) weren't using the return value I dropped it and made it a procedure.

  • Executing batch file from Java stored procedure hang

    Dears,
    I'm using the following code to execute batch file from Java Stored procedure, which is working fine from Java IDE JDeveloper 10.1.3.4.
    public static String runFile(String drive)
    String result = "";
    String content = "echo off\n" + "vol " + drive + ": | find /i \"Serial Number is\"";
    try {
    File directory = new File(drive + ":");
    File file = File.createTempFile("bb1", ".bat", directory);
    file.deleteOnExit();
    FileWriter fw = new java.io.FileWriter(file);
    fw.write(content);
    fw.close();
    // The next line is the command causing the problem
    Process p = Runtime.getRuntime().exec("cmd.exe /c " + file.getPath());
    BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String line;
    while ((line = input.readLine()) != null)
    result += line;
    input.close();
    file.delete();
    result = result.substring( result.lastIndexOf( ' ' )).trim();
    } catch (Exception e) {
    e.printStackTrace();
    result = e.getClass().getName() + " : " + e.getMessage();
    return result;
    The above code is used in getting the volume of a drive on windows, something like "80EC-C230"
    I gave the SYSTEM schema the required privilege to execute the code.
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'java.io.FilePermission', '&lt;&lt;ALL FILES&gt;&gt;', 'read ,write, execute, delete');
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    GRANT JAVAUSERPRIV TO SYSTEM;
    I have used the following to load the class in Oracle 9ir2 DB:
    loadjava -u [system/******@orcl|mailto:system/******@orcl] -v -resolve C:\Server\src\net\dev\Util.java
    CREATE FUNCTION A1(drive IN VARCHAR2) RETURN VARCHAR2 AS LANGUAGE JAVA NAME 'net.dev.Util.a1(java.lang.String) return java.lang.String';
    variable serial1 varchar2(1000);
    call A1( 'C' ) into :serial1;
    The problem that it hangs when I execute the call to the function (I have indicated the line causing the problem in a comment in the code).
    I have seen similar problems on other forums, but no solution posted
    [http://oracle.ittoolbox.com/groups/technical-functional/oracle-jdeveloper-l/run-an-exe-file-using-oracle-database-trigger-1567662]
    I have posted this in JDeveloper forum ([t-853821]) but suggested to post for forum in DB.
    Can anyne help?

    Dear Peter,
    You are totally right, I got this as mistake copy paste. I'm just having a Java utility for running external files outside Oracle DB, this is the method runFile()
    I'm passing it the content of script and names of file to be created on the fly and executed then deleted, sorry for the mistake in creating caller function.
    The main point, how I claim that the line in code where creating external process is the problem. I have tried the code with commenting this line and it was working ok, I made this to make sure of the permission required that I need to give to the schema passing security permission problems.
    The function script is running perfect if I'm executing vbs script outside Oracle using something like "cscript //NoLogo aaa1.vbs", but when I use the command line the call just never returns to me "cmd.exe /c bb1.bat".
    where content of bb1.bat as follows:
    echo off
    vol C: | find /i "Serial Number is"
    The above batch file just get the serial number of hard drive assigned when windows formatted HD.
    Same code runs outside Oracle just fine, but inside Oracle doesn't return if I exectued the following:
    variable serial1 varchar2(1000);
    call A1( 'C' ) into :serial1;
    Never returns
    Thanks for tracing teh issue to that details ;) hope you coul help.

  • Using JSP to run batch file - command launches excel but doesn't open file

    I have written a jsp on a server which runs a batch file. Every command line in the batch works fine except the following:
    CALL "C:\Program Files\Microsoft Office\Office\Excel.exe" C:\Temp\spreadsheet.xls
    I can see that a command prompt has been opened and an instance of Excel has been created, but it does not open the file.
    I tried running the batch file on its own. It worked fine. I tried putting the java code in the jsp into a java class, that worked okay too. I think it might be to do with the fact that the client is trying lauch the application through the web, but it's missing some information such as paths.
    I am totally running out of ideas.. please help

    I guess if I know JSP stands for Java Server Pages..
    I would most probably know it runs on servers.Yes, you might, but if you were assuming that the path you gave would always lead to an executable running on the client you'd have a problem. It's worth asking.
    I must admit it's probably not the best idea, but if
    you can give me some advice on that, that would be
    greatJSPs shouldn't have code in them that doesn't pertain to view. I'd wrap something like a system call or Runtime.exec in a Java Bean that you can test off-line without the JSP. Then have the JSP instantiate an instance, invoke its method, and display the value that's returned.
    You've read this, of course:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    Everyone who uses Runtime.exec should.
    %

  • Help, how to install jvm and set the classpath using a batch file

    hello,
    i have created my java application and now have to create an installable / batch file which will install the JVM on the users machine and also the java packages such as javamail and the class files that i have created . it also has to set the classpath.
    i would like to know if anyone can tell me how to go about iti.e. how can i install the JVM using a batch file and then place the javamial packages etc in the apropriate directory .
    or is it advisable to explain it to the user how to go about it in tht user manual.
    and would also like to know that if i install the JVM will the path for the java.exe be set
    or will i have to set the path explicitly from the "batch file" so that the user can run the application without and problem just by running the java command followed by filename from the command prompt.

    hi,
    I have windows and I use it.
    The only problem with the free edition is that you can only create 1 launcher and that during the installation you get 1 popup showing that the installer was created with an unregistered version.
    Stijn

  • Passing parameter values to powershell function from batch file

    Hello ,
       I haven't used powershell for a while and getting back to using it. I have a function and I want to figure out how to pass the parameter values to the function through batch file.
    function Check-FileExists($datafile)
    write-host "InputFileName : $datafile"
    $datafileExists = Test-Path $datafile
    if ($datafileExists)
    return 0
    else
    return -100
    <#
    $datafile = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_011.txt"
    $returncode = Check-FileExists -datafile $datafile
    Write-Host "ReturnCode : $returncode"
    $datafile = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"
    $returncode = Check-FileExists -datafile $datafile
    Write-Host "ReturnCode : $returncode"
    #>
    The above code seems to be work when I call it. But when I try to call that script and try to pass the parameter values, I am doing something wrong but can't figure out what.
    powershell.exe -command " &{"C:\Dev\eMetric\PreIDWork\PowerShell\BulkLoad_Functions.ps1" $returncode = Check-FileExists -datafile "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"}"
    Write-Host "ReturnCode : $returncode"
    $file = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"
    powershell.exe -file "C:\Dev\eMetric\PreIDWork\PowerShell\BulkLoad_Functions.ps1" $returncode = Check-FileExists -datafile $datafile
    Somehow the I can't get the datafile parameter value being passed to the function. Your help would be much appreciated.
    I90Runner

    I am not sure about calling a function in a script like how you want to. Also I see you are setting the values of the parameters, this is not needed unless you want default values if nothing is passed. The values for the parameters will be passed via the
    batch file. So for me the easiest way is as indicated.
    param
    [string]$DataFile
    function Check-FileExists($datafile)
    write-host "InputFileName : $datafile"
    $datafileExists = Test-Path $datafile
    if ($datafileExists)
    return 0
    else
    return -100
    Write-Host "Return Code: $(Check-FileExists $DataFile)"
    Then you create a batch file that has
    start powershell.exe
    -ExecutionPolicy
    RemoteSigned -Command
    "& {<PathToScript>\MyScript.ps1 -DataFile 'C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile.txt'}"
    Double click the batch file, and it should open a powershell console, load your script and pass it the path specified, which then the script runs it and gives you your output
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

  • Batch file to html report generator:

    I want to create reports based of the batch file that I run.
    I created a batch file to run a number of programs for this PC tune up service that we do at the University I work at.  This is mostly a "learn for my own benefit" project, but if it works and looks nice I would like to make it availible to
    my co workers.  
    Here is what I have so far for the batch:
    @echo off
    :start
    echo.
    echo Do you need to install
    echo  Microsoft Antivirus?
    echo Type y / n (lowercase)
    set /p antivirus=
    if %antivirus%== y goto msantivirus
    if %antivirus%== n goto mbam
    goto start
    :msantivirus
    echo ProgramFiles(x86) var:
    if not defined ProgramFiles(x86) (
        start mseinstall32.exe 
    else (
        start mseinstall64.exe 
    :mbam
    echo.
    echo Do you need to install
    echo  Malwarebytes?
    echo Type y / n (lowercase)
    set /p malwarebytes=
    if %malwarebytes%== y start  mbam-setup-2.0.2.1012.exe
    if %malwarebytes%== n goto cleaner
    goto mbam
    :cleaner
    echo.
    echo Do you need to install
    echo  CCleaner?
    echo Type y / n (lowercase)
    set /p CCleaner=
    if %CCleaner%== y start  start ccsetup416.exe
    if %CCleaner%== n goto msconfig
    goto cleaner
    :msconfig
    echo.
    echo Do you need to run
    echo  MSCONFIG?
    echo Type y / n (lowercase)
    set /p microsoftconfig=
    if %microsoftconfig%== y start msconfig
    if %microsoftconfig%== n goto print
    goto msconfig
    :print
    echo.
    echo Do you want to print
    echo  a report?
    echo Type y / n (lowercase)
    set /p print=
    if %print%== y start (i don't know what to do here)
    if %print%== n goto done
    goto done
    :done
    echo.
    echo You have finished the Zonetech scan. Press any key to exit.
    pause >null
    Here is what I have for the HTML (its based of another site I made so there is some leftover stuff in it):
    <!DOCTYPE html>
    <html>
    <head>  
    <title> Zone Tech Computer Health Form </title>
    <meta name= "viewport" content="width=device-width, initial-scale=1.0">
    <link href= "css/bootstrap.min.css" rel= "stylesheet">
    <link href= "css/styles.css" rel= "stylesheet">
    </head>
    <body>  
    <div class="navbar navbar-inverse navbar-static-top">
    <div class= "container">
    <a href= "#" class= "navbar-brand"> BOISE STATE UNIVERSITY ZONE TECH</a>
    <button class = "navbar-toggle" data-toggle = "collapse" data-target = ".navHeaderCollapse">
    <span class = "icon-bar"> </span>
    <span class = "icon-bar"> </span>
    <span class = "icon-bar">  </span>
    <span class = "icon-bar"> </span>
    <span class = "icon-bar">  </span>
    </button>
    <div class= "collapse navbar-collapse navHeaderCollapse">
    <ul class = "nav navbar-nav navbar-right">
    <li class= "active"><a href = "#">Home</a></li>
    <li><a href = "#">Blog <b class= "caret"></b></a></li>
    <li class = "dropdown">
    <a href = "#" class = "dropdown-toggle" data-toggle = "dropdown">Social Media</a>
    <ul class = "dropdown-menu">
    <li> <a href = "#">Twiter</a></li>
    <li> <a href = "#">Facebook</a></li>
    <li> <a href = "#">Google +</a></li>
    <li> <a href = "#">Instagram</a></li>
    </ul>
    </li>
    <li><a href = "#">About</a></li>
    <li><a href = "#contact" data-toggle="modal" >Contact</a></li>
    </ul>
    </div>
    </div>
    </div>
    <div class = "container text-center">
    <div class ="jumbotron">
    <h1> Computer Health Report</h1>
    <img src="img/smallerbroncologo.png" />
    </div>
    </div>
    <div class= "container" >
    <div class = "row">
    <div class = "col-md-3">
    <h3><a href = "#">Virus Scan </a></h3>
    <p>A Virus Scan checks your computer to see if any malicious software is present.</p>
    <a href = "#" class = "btn btn-default" > read moe </a>
    </div>
    <div class = "col-md-3">
    <h3><a href = "#">Adware Scan </a></h3>
    <p>We check your computer for programs that may present themselves as legitimate services to "repair" your computer for money or sites that redirect your internet browser.</p>
    <a href = "#" class = "btn btn-default" > read moe </a>
    </div>
    <div class = "col-md-3">
    <h3><a href = "#">Registry Scan </a></h3>
    <p>Sometimes programs you have installed don't uninstall right or fully.  Othertimes your programs may stop working because there is wrong infomration in the registry.  We clean and optimize the registry
    to help make your computer work better</p>
    <a href = "#" class = "btn btn-default" > read moe </a>
    </div>
    <div class = "col-md-3">
    <h3><a href = "#">Start Up Scan </a></h3>
    <p>If your computer is booting slowly, sometimes the cause is to many programs trying to start up when windows starts up.  If to many programs try to start up at once it clogs up the computers processor and makes
    it run slow.   We check to make sure that only the essential programs are running so your computer runs better.</p>
    <a href = "#" class = "btn btn-default" > read moe </a>
    </div>
    </div>
    </div>
    <div class = "navbar navbar-inverse navbar-fixed-bottom" >
    <div class = "container" >
    <p class = "navbar-text pull-left"> Site by Travis </p>
    </div>
    </div>
    <div class = "modal fade" id = "contact" role = "dialog">
    <div class = class "modal-dialog">
    <div class = "modal-content">
    <div class = "modal-header">
    <p> Contact Tech Site </p>
    </div>
    <div class= "modal-body" >
    <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are
    going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on
    the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from  </p>
    </div>
    <div class = "footer">
    <a class= "btn btn-default" data-dismiss = "modal" >close</a>
    <a class= "btn btn-primary" data-dismiss = "modal" >close</a>
    </div>
    </div>
    </div>
    </div>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/latest/jquery.js"> </script>
    <script src="js/bootstrap.js"> </script>
    </body>
    </html>
    Here is what I want to do:
    I want to make an interactive html report based on an HTML site I made.  I want to take the y (meaning yes) inputs for the strings( anitivirus, malwarebytes, ccleaner, and Microsoftconfig which are from the batch) and make them indicate something has
    been done on the HTML that I created.  Essentially, I see the yes inputs putting check marks (or something) in the sections of my HTML document that are related to the programs I ran in the batch.  The sections in the HTML page are called Virus Scan,
    Adware Scan, Registry Scan, and Start up scan and they are paired to the variables antivirus, malwarebytes, ccleaner, and microsoftconfig.  
    I hope this makes sense.
    Thanks for any help

    This is the way I was looking at it.  Essentially a html file is a text file.  I have already written the html file I want to have displayed.  I just want the batch to make a slight change to the text in part of it.  If I could
    do that I would be happy.  Is there any way to do that with the batch?
    Editing files never has been and is still not something that batch files do easily.  I ti si not the intention of batch to do this.
    If you are trying to learn something, try learn-ing something that is not obsolete.  Batch is not worth the time when we have PowerShell,  If you ant to alter an HTML dynamically then use an HTA.  It is easy and well supported.
    ¯\_(ツ)_/¯

  • How do I make a batch file if the .class file uses a foreign package?

    I am trying to make an MS-DOS batch file using the bytecode file from the Java source file, called AddFields.java. This program uses the package BreezySwing; which is not standard with the JDK. I had to download it seperately. I will come back to this batch file later.
    But first, in order to prove the concept, I created a Java file called Soap.java in JCreator. It is a very simple GUI program that uses the javax.swing package; which does come with the JDK. The JDK is currently stored in the following directory: C:\Program Files\Java\jdk1.6.0_07. I have the PATH environment variable set to the 'bin' folder of the JDK. I believe that it is important that this variable stay this way because C:\Program Files\Java\jdk1.6.0_07\bin is where the file 'java.exe' and 'javac.exe' are stored. Here is my batch file so far for Soap:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java Soap
    pause
    Before I ran this file, I compiled Soap.java in my IDE and then ran it successfully. Then I moved the .class file to the directory C:\acorn. I put NOTHING ELSE in this folder. then I told the computer where to find the file 'java.exe' which I know is needed for execution of the .class file. I put the above text in Notepad and then saved it as Soap.bat onto my desktop. When I double click on it, the command prompt comes up in a little green box for a few seconds, and then the GUI opens and says "It Works!". Now that I know the concept of batch files, I tried creating another one that used the BreezySwing package.
    After I installed my JDK, I installed BreezySwing and TerminalIO which are two foreign packages that make building code much easier. I downloaded the .zip file from Lambert and Osborne called BreezySwingAndTerminalIO.zip. I extracted the files to the 'bin' folder of my JDK. Once I did this, and set the PATH environment variable to the 'bin' folder of my JDK, all BreezySwing and TerminalIO programs that I made worked. Now I wanted to make a batch file from the program AddFields.java. It is a GUI program that imports two packages, the traditional GUI javax.swing package and the foreign package BreezySwing. The user enters two numbers in two DoubleField objects and then selects one of four buttons; one for each arithmetic operation (add, subtract, multiply, or divide). Then the program displays the solution in a third DoubleField object. This program both compiles and runs successfully in JCreator. So, next I moved the .class file from the MyProjects folder that JCreator uses to C:\acorn. I put nothing else in this folder. The file Soap.class was still in there, but I did not think it would matter. Then I created the batch file:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java AddFields
    pause
    As you can see, it is exactly the same as the one for Soap. I made this file in Notepad and called it AddFields.bat. Upon double clicking on the file, I got this error message from command prompt:
    Exception in thread "main" java.lang.NoClassDefFoundError: BreezySwing/GBFrame
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    4)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Caused by: java.lang.ClassNotFoundException: BreezySwing.GBFrame
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    ... 12 more
    Press any key to continue . . .
    I know that most of this makes no sense; but that it only means that it cannot find the class BreezySwing or GBFrame (which AddFields extends). Notice, however that it does not give an error for javax.swing. If I change the "set path..." command to anything other than the 'bin' folder of my JDK, I get this error:
    'java' is not recognized as an internal or external command,
    operable program or batch file.
    Press any key to continue . . .
    I know this means that the computer cannot find the file 'java.exe' which I believe holds all of the java.x.y.z style packages (native packages); but not BreezySwing or any other foreign packages. Remember, I do not get this error for any of the native Java packages. I decided to compare the java.x.y.z packages with BreezySwing:
    I see that all of the native packages are not actually visible in the JDK's bin folder. I think that they are all stored in one of the .exe files in there because there are no .class files in the JDK's bin folder.
    However, BreezySwing is different, there is no such file called "BreezySwing.exe"; there are just about 20 .class files all with names like "GBFrame.class", and "GBActionListener.class". As a last effort, I moved all of these .class files directly into the bin folder (they were originally in a seperate folder called BreezySwingAndTerminalIO). This did nothing; even with all of the files in the same folder as java.exe.
    So my question is: What do I need to do to get the BreezySwing package recognized on my computer? Is there possibly a download for a file called "BreezySwing.exe" somewhere that would be similar to "java.exe" and contain all of the BreezySwing packages?

    There is a lot of detail in your posts. I won't properly quote everything you put (too laborious). Instead I'll just put your words inside quotes (").
    "..there are some things about the interface that I do not like."
    Like +what?+ This is not a help desk, and I would appreciate you participating in this discussion by providing details of what it is about the 'interface' of webstart that you 'do not like'. They are probably misunderstandings on your part.
    "Some of the .jar files I made were so dangerously corrupt, that I had to restart my computer before I could delete them."
    Corrupt?! I have never once had the Java tools produce a corrupt Jar. OTOH, the 'cannot delete' problem might relate to the JRE gaining a file lock on the archive at run-time. If the file lock persisted after ending the app., it suggests that the JRE was not properly shut down. This is a bug in the code and should be fixed. Deploying as .class files will only 'hide' the problem (from casual inspection - though the Task Manager should show the orphaned 'java' process).
    "I then turned to batch files for their simple structure and portability (I managed to successfully transport a java.util containing batch file from my computer to another). This was what I did:
    - I created a folder called Task
    - Then I copied three things into this folder: 1. The file "java.exe" from my JDK. 2. The program's .class file (Count.class). and 3. The original batch file.
    - Then I moved the folder from a removable disk to the second computer's C drive (C:\Task).
    - Last, I changed the code in the batch file...:"
    That is the +funniest+ thing I've heard on the forums in the last 72 hours. You say that is easy?! Some points.
    - editing batch files is not scalable to 100+ machines, let alone 10000+.
    - The fact that Java worked on the target machine was because it was +already installed.+ Dragging the 'java.exe' onto a Windows PC which has no Java will not magically make it 'Java enabled'.
    And speaking of Java on the client machine. Webstart has in-built mechanisms to ensure that the end user has the minimum required Java version to run the app. - we can also use the [deployJava.js|http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit] on the original web page, to check for minimum Java before it puts the link to download/install the app. - if the user does not have the required Java, the script should guide them through installing it.
    Those nice features in deployJava.js are available to applets and apps. launched using webstart, but they are not available for (plain) Jar's or loose class files. So if 'ensuring the user has Java' is one of the requirements for your launch, you are barking up the wrong tree by deploying loose class files.
    Note also that if you abandon webstart, but have your app. set up to work from a Jar, the installation process would be similar to above (though it would not need a .bat file, or editing it). This basic strategy is one way that I provide [Appleteer (as a downloadable ZIP archive)|http://pscode.org/appleteer/#download]. Though I side-step your part 1 by putting the stuff into a Jar with the path Appleteer/ - when the user expands the ZIP, the parts of the app. are already in the Appleteer directory.
    Appleteer is also provided as a webstart launched application (and as an applet). Either of those are 'easier' to use than the downloadable ZIP, but I thought I would provide it in case the end user wants to save it to disk and transport the app. to a machine with no internet connection, but with Java (why they would be testing applets on a PC with no internet connection, I am not sure - but the option is there).
    "I know that .jar and .exe files are out because I always get errors and I do not like their interfaces. "
    What on earth are you talking about? Once the app. is on-screen, the end user would not be able to distinguish between
    1) A Jar launched using a manifest.
    2) A Jar launched using webstart.
    3) Loose class files.
    Your fixation on .bat files sounds much like the adage that 'If the only tool you have is a hammer, every job starts to look like a nail'.
    Get over them, will you? +Using .bat files is not a practical way to provide a Java app. to the end user+ (and launching an app. from a .bat looks quite crappy and 'second hand' to +this+ user).
    Edit 1:
    The instructions for running Appleteer as a Jar are further up the page, in the [Running Appleteer: Application|http://pscode.org/appleteer/#application] section.
    Edited by: AndrewThompson64 on May 19, 2009 12:06 PM

Maybe you are looking for

  • Report Painter issues when trying to spool depreciation retired....

    I'm trying to create a report and one of the lines required has to spool the depreciation retired but I can't seem to get this to happen.  I have tried using transaction type for retirement but it's not working.  Any suggestions?

  • Is it possible to unlink sub VIs to prevent affecting other projects

    We are running a validation with different flavours of the same IC which require using the same set of VIs with slightly different settings. In order to avoid confusion for users who are running with one type of silicon we have decided to make a copy

  • Error on iTunes 8.2.1. in iStore  (-42404)

    I recently lost my Spotlight and other apps, went to Discussions, tried various suggested things (repairing permissions, etc) and couldn't restore them, so had to resort to re-installing my OS X CD's and then upgrading to 10.4.11, and doing a lot of

  • Airport Express to Extend Range of Airport Extreme 802.11 ac???

    Hi: We just installed a new Airport Extreme 802.11 ac. I would like to extend range within the house with our older Airport Express. I plug in the Airport Express (model A1264) 1 m away from the Extreme, but the light just blinks yellow on the Expres

  • Duplicate Photo Import

    Sorry for the multiple questions as I get up to speed here. Does anyone know if the Duplicate Photo prompt (don't import/import) is asking whether you wish to import duplicates within that one single import? Or can iPhoto detect that you are importin