Calling an external program!

Salut all, Im using unfortunately Oracle Forms 6i, and I need to call an external program that I have to develop in Java, compiled into .jar. I just wanna use something like java -jar myJar.jar <my params...> but I don´t know how to call external programs from Oracle Forms, in special from 6i.
I have searched this thread passed (Re: Calling JAVA from PL/SQL but didn´t help me so much.
Thanks all for patience!

In version 9 and 10 we have a general way of calling out to java thru the Java Importer functionality.
If you cannot upgrade to these later versions and you don't need to get data back from the jar file execution you can always use the Host command to call it directly the way you have outlined.

Similar Messages

  • When I call an external program from Labview, how can I embed the interface into the front panel?

    I'm running Labiew 6i for Linux. I'm using a system exec.vi to call an external program to do image manipulation (since there is no IMAQ for linux). How can I embed the user interface of the external program into the front panel of Labview?

    As far as I know, the only way to embed other GUIs in LabView is an ActiveX in a container.
    As long as you are using Linux, try to place (moving them on the desktop ) the two windows linked (like those 3 of WinAmp).

  • Calling an external program (*.exe file) on the client

    Hi,
    I use 9iDS and I'd like to call an external program (*.exe file) on the client, but this exe file is located on the server not on the client.
    So it should be something like a mixture between host and client_host(webutil) command. Is it possible to use client_host where a virtual path is passed to?
    Regards Sören

    Are you saying you want to run on the exe on the client but its located on the server???
    In that case you would have to do a webutil file transfer to move it to the client before executing. Or, if you are calling a DLL, webutil will download it automatically from the server to the client (see the C API example on the webutil page).
    Regards
    Grant Ronald
    Forms Product Management

  • How to call a external program in java?

    Help!!
    Is there any method that can a java program can call a external program? For example execute a exe file.
    Thanks.

    Yes.
    Runtime.getRuntime().exec("exactly what you would type at the command line");
    But be aware that this is operating-system-specific and full of gotchas. When you run into one of them, come back to the forum and do a search, this is a frequent topic of discussion.

  • Before calling an external program, check if the program is allready open

    I need to call an external program to print some labels, so i will use function WS_EXECUTE or the new one DSVAS_DOC_WS_EXECUTE_50 to call my program, but the problem that i have is:
    when I call this function, the program open a small window, and if i have to call it again, it will open another window, and so on... obviously this is not a good solution.
    Is there any one how knows how can i close the program, of perhaps it is enough if there is some way to know if the program is already open.
    Many thanks in advance,
    Miriam

    Hi
    you can use the ABAP Coverage Analyzer.
    OR
    This is a function module we use to limit the execution of a program to one instance at a time.
    DATA: PRG LIKE INDX-SRTFD. PRG = SY-CPROG.
    CALL FUNCTION 'ENQUEUE_ESINDX'
    EXPORTING RELID = 'ZZ'
    SRTFD = PRG
    SRTF2 = 0
    EXCEPTIONS FOREIGN_LOCK = 1
    SYSTEM_FAILURE = 2.
    IF SY-SUBRC NE 0.
    FORMAT COLOR COL_NEGATIVE INVERSE ON.
    WRITE: / 'ERROR: Program Is Already Running'.
    WRITE: / 'Program', PRG, 'has been stopped. Rerun in 1 minute.'.
    STOP.
    ELSE.
    WRITE: / 'OK ',PRG.
    ENDIF.
    Regards,
    Raj

  • How do I call an external program

    From within my Java program I want to execute an
    external program and dump the output into a string
    or array of strings. In perl this is trivial $a=`dir`.
    How do I do it in Java?
    Thanx,
    Art.

    with Runtime
                try {
                        Process p = Runtime.getRuntime().exec("cmd.exe /c dir");
                        BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
                        String str = "";
                        while((str = in.readLine()) != null)
                            //do what you want to with input
                        in.close();
                    catch(Exception e)
                        e.printStackTrace();
    [/code[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Can I call an external program from my rman script

    Hi
    Is it possible to do an external call to a bat-file in a rman script?
    My script looks like this (it's pretty much generated from EM):
    $rman_script="backup device type disk tag '%TAG' database;
    sql 'alter system archive log current';
    backup device type disk tag '%TAG' archivelog all not backed up delete all input;
    allocate channel for maintenance type disk;
    delete noprompt obsolete device type disk;
    release channel;
    Can i somehow make an external call before at the end?
    Regards
    Klaus Mogensen

    You can use the HOST command.

  • Call an external program?

    I've created a GUI to record sounds, now I need to call the DOS-prompt to execute specific commands of the HTK (a sound recognize program).
    It's like how can I execute "dir" command from a java interface? :)
    I need urgent help please...

    Runtime.getRuntime().exec(...)
    It's like how can I execute "dir" command from a java
    interface? :)Note that dir will not work, nor will any other dos commands

  • How to call a external program in java program

    for example, if I want to execute internet explore or windows word in java program, how to do it?

    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html

  • A challenge...Calling a external program such as 'WordPad'

    Whether the report program could be programmed and excuted like below:
    1)Extract the data which will be used for output
    2)save those data into *.txt file
    2)Then automatic to open the *.txt files with <b>WordPad</b> program, Be Attention: NOT NotePad.
    3)Set font to MS Mingcho
    4)Save all the data into *.txt file using WordPad
    5)After that, then back to the abap program, then send mail to somebody this txt files.
    As for why need to save *.txt files again in WordPad, coz sometimes we found that the format will be distorted when saving data into txt files first time. If you open txt files by WordPad and save it into txt files again, you will find that the format turns to be good.
    Could above steps be done using ABAP programming???
    Thanks!!!

    Hi hoo lala,
    1. one and two can be done using GUI_DOWNLOAD function module.
    2. Open the file  using fm GUI_EXEC and pass word pad with filename
    3. regarding the font, i don't think its directly possible, not even with OLE,
       because wordpad / notepad may note be supporting OLE.
    regards,
    amit m.

  • Language other than bash for calling external programs

    Hi,
    sorry for the unspecific title, I couldn't think of a better summary.
    The problem is this: I have written a script to encode a DVD to H264 and Vorbis. Since it basically just performs some (OK, by now: A lot of.) management and then calls a external programs, Bash was the obvious choice.
    However, the administrative stuff the script does (evaluating user input, calculations etc.) was already a nightmare to code in Bash (lack of arithmetic, lack of data types, proper functions, lack of c-like structs etc.), and I now want to make it even more flexible in what the user (me) can ask of it (it's also going to use a config file, which is another thing that gets ugly fast). Frankly, I can't stomach that.
    So the question is this: What language would be sensible for a program the most important function of which is calling other programs?
    Simply executing them from the main program isn't enough, unfortunately, because I want to make use of multicore system by for example simultaneously extracting streams and encoding them (right now that is done through named pipes), ideally I'd need a way to multithread not internal functions/routines but external programs (Through pipes or whatever).
    I'd prefer an interpreted language, but it's not a requirement.

    I second what peets said. Perl is definitely you're best option here, in my opinion anyways. It has the best (by which I mean easiest) system interface of any scripting langauge I've worked with, and if you want a simple configuration file reader, perl's regex'es are king. Perl also takes a lot of features from the shells, such as the file test operations. If the project get's really big and hairy though, it might be worth considering python as a cleaner, stricter alternative.
    Hope that helps!

  • Calling External Program

    Hi all,
    I’m currently doing a program that will trigger an external batch (.bat) program. I’m using WS_EXECUTE function module to trigger the external program. I need to know that whether ABAP will wait until the external bat program run completed then only will go back to the calling program and execute the rest of the ABAP code; or the WS_EXECUTE will just trigger the external program then continue the rest of the code in ABAP.
    Best regards,
    Patrick

    Hi Uma,
    FYI, I've run a thorough test, it will run synchronously though it calls an external program.
    I shall take note of the obsolete FM.
    Many thanks,
    Patrick

  • Calling external program on application server

    Hi, everyone. I'm trying to call an external program from ABAP by using SM69 and FM SXPG_COMMAND_EXECUTE
    MOVE 'zlong_bat' to ld_comline.         "Maintained using trans SM69
    * Execute external command, contained in 'ld_comline'
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
           EXPORTING
                commandname                   = ld_comline
    *           additional_parameters   = ld_param  "Params passed to script
    *           operatingsystem               = 'UNIX'
           IMPORTING
                status                        = ld_status
           TABLES
                exec_protocol                 = ld_output
           EXCEPTIONS
                no_permission                 = 1
                command_not_found             = 2
                parameters_too_long           = 3
                security_risk                 = 4
                wrong_check_call_interface    = 5
                program_start_error           = 6
                program_termination_error     = 7
                x_error                       = 8
                parameter_expected            = 9
                too_many_parameters           = 10
                illegal_command               = 11
                wrong_asynchronous_parameters = 12
                cant_enq_tbtco_entry          = 13
                jobcount_generation_error     = 14
                OTHERS                        = 15.
      IF sy-subrc NE 0.
      ENDIF.
    In the  sm69, I define zlong_bat with
        Operating system command: cmd
         Parameters for operating system command: /c remoteconn.bat
    It can run well if remoteconn.bat contain some simple command of dos like dir, md, mk... But when I call a program from remoteconn.bat, the abap program hang. I also cannot test in sm69 because it hang too.
    If I call direcly from sm 69 with
         Operating system command: cmd
         Parameters for operating system command: /c  psexec.exe
    localhost -u test -p 1234
    or
         Operating system command: C:\psexec.exe
         Parameters for operating system command: 
    localhost -u test -p 1234
    The SM69 also hang.
    Are there any method to call a program from sap without hanging
    of course the program is in its position on application server.
    Thank you in advance.
    Regards,
    Long
    Edited by: dragonking88 on Aug 25, 2010 12:54 PM

    Hi Long Le Hoang,
    I am running a shell script fromSM69 which call psexec.
    shell script runs fine but SM69 execution goes on hold.
    Can you please help me how to terminate SM69 execution.
    Alpa

  • Calling external programs using labview

    I have a LV program running to collect and display data, but also need to call an external program while doing this. I have a menu set up where one button launches my system control .vi, one launches my data display .vi, but there is another feature that is handled by a program a co-worker has written. Is there a way that whenever a button is pressed, LV can launch an external .exe file? Basically, I just need LV to call the executeable... the program that is called will be terminated by the user.
    Jim

    Try function palette -> Communication -> System Exec.vi
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • Call external program without intermediate step

    When I call an external program (Nik Color Efex) a window opens asking me wether I want to continue with the image having all Lr stpes applied etc. How can I circumvent this "annoying" step and directly call the external program without interruption?

    Thanks, I understand that before transferring the file you need to do these preparations, but then the window shows up asking me wether I want to transfer the copy or the original...  I am looking for a mechanism to supress that screen.

Maybe you are looking for

  • I want to take my iPhone abroad for a few months, how do I use a different SIM card in my phone?

    I'm travelling around America for two months with a tour company (Trek America) that offer a SIM card that enables cheap calls back home and within the US. What do I need to do in order to unlock my phone to use a different SIM card?

  • Photoshop Elements 5, trying to reconnect photos in Catalog, Vista

    I had to install a new fixed disk in my Vista PC and re-install all programme's. In this process it turned out that folder structure is now slightly different from the past. I had copied all photo's to new disk (note I use different folders). Subsequ

  • HD error?

    Hello, my MB Pro 2.2 had the Nvidia chip problem. Apple fortunately replaced the Logic Board by warranty, but now I have another problem. Apple told me, that the HD would be defective. I can't imagine that, because it worked without any error till th

  • IPod/iPhoto -- is the a "Senuti" for photos?

    Is there comparable softward to Senuti that will allow me to download photos in my iPod to iPhoto on my computer? Also, can I download my quicktime movie clips (taken with my digital camera) on to my iPod?

  • Getting Error as Unexpected exception from plug-in (Execute)?

    Hi all, i was getting an plugin error when writing the data into CRM 2013 using CRM 2013 SDK from SSIS Package. i tried to find out the root cause by debugging and came to know that this is not data issue.seems something related to plugin or else. Ca