How my java-program invoke Delphi's program or EXE

Hi All, My java program needs to invoke Delphi's program/EXE, but i donn't know how to do.
Pls help!

The following code will open a IE browser rightly,
=====================
try
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("cmd /c start D:\IEXPLORE.EXE"");
InputStream stderr = proc.getErrorStream();
InputStreamReader isr = new InputStreamReader(stderr);
BufferedReader br = new BufferedReader(isr);
String line = null;
System.out.println("<ERROR>");
while ( (line = br.readLine()) != null) {
System.out.println(line);
System.out.println("</ERROR>");
int exitVal = proc.waitFor();
System.out.println("Process exitValue: " + exitVal);
} catch (Exception ioe){
ioe.printStackTrace();
=====================

Similar Messages

  • How can java programs execute automatically when it connects to network

    Good Day dears...
    How can java programs execute automatically when it connects to network.
    Thanks in Advance friends Shackir

    884924 wrote:
    Good Day dears...
    How can java programs execute automatically when it connects to network.What is "it"? That is, execute when what connects to the network?
    Your computer? If that's what you mean, this is not a Java question. It's an OS operational/administrative question. Executing any program, whether written in Java or not, based on some system event has to do with that system, not with the program. If it's possible to do this, you'd do it exactly the same way for a Java program as you would for any other program.
    Or is "it" the program itself? If this is what you mean, then it's a nonsensical question. For the program to connect to the network and detect that it has connected to the network, it must already be executing, so asking how to execute it at that point is meaningless.
    Finally, I'll point out that "connecting to the network" is a pretty meaningless phrase. Or rather, it has so many potentially valid meanings that it's impossible to know which one you're referring to when you use that phrase. And I'd be willing to bet you don't have a clear picture of that yourself.

  • How can Java program convert to .exe file which can run on window system?

    Hi,
    I am a new programmer, now I wrote a program on the Eclipse, and now I want to convert to .exe file and make the program can be run on other window office system PC.
    I had downed EXE4J software to make the program to .exe. BUT the exe file can not be run on other PC with the error message that warning the PC have not set up JVE. IS it necessary to set up JVE?
    OR give me your experience on how to do it?
    Thanks!

    >
    I am a new programmer, now I wrote a program on the Eclipse, and now I want to convert to .exe file and make the program can be run on other window office system PC.>If you only code for Windows, why not use dotNet or C# or whatever system MS is pushing at this instant?
    If you wish to code for computers, Java is good, but it needs a JRE.
    The easiest way to get a Java application up and running on a client PC is to launch it via. webstart, and to use deployJava.js to ensure the minimum Java is on the client PC, ready to use webstart.
    Used this way, you link to a web page where the user clicks a link that downloads and installs the application (and adds extras like splash screens, desktop integration, registration of interest in file types, automatic update..).
    As an aside. The best way to ensure answers is to indicate your interest in solutions, by adding a lot of Duke stars to a thread.

  • How a java program accessable by another java program?

    Dear all,
    Iam had developed a program which talks to serial port. This program should be intergrated with another main java program . I don't want a function (subroutine )call to my program. i want any other methods to access my program by main java program , which should be fast.

    You could serach for "interprocess communication". The main techniques available are pipes and share memory. This means that the two Java programs run as totally separated processes.
    An easier way is to restructure the "serial port talking" program into a "utility package with an API" and integrate it with the "main" program. You could let the "serial port talker" run in it's own thread thus creating an illusion of total independency from "main".

  • How a java program is executed ?

    Hi,
    I would like to understand what a java program calls at first. Is it the main() ?
    Is it the same as C++ ?
    Is it different for an applet?
    thanks
    djb

    For an application, yes, public static void main(String[] args)
    (unlike C++ you cannot have main return an int, and it must have a String[] as a parameter)
    For an applet it calls public void init(), then usually public void start()
    Cheers,
    Radish21

  • Change the java program in *.exe

    how can i do to change my java program in a .exe file ? This could be useful if the user doesn't have the java runtime environment.

    Hello
    You can use third party softwares like
    PJ2Exe or sumthing like that
    search on google
    Rohan

  • Convert Java program to .exe

    title says it all...is there an application that will convert your java programs into executable files?

    I'm not sure which is more tiresome: The same question asked over again (after all, this is the NtJT forum), or the increasingly silly logins that forum users feel compelled to create.
    Sometimes it's amusing. Occasionally it's necessary, in order to speak your mind on a subject without being flamed or ignored on neutral issues. But to my mind, perhaps it's time that multiple IDs were banned under forum rules, and IP addresses logged to enforce the ban (perhaps on complaint only). Especially when these extra logins are used only to abuse or ridicule members who posted reasonable (if monotonous) questions.
    Needless to say, if J-M-B is a new user, I think you've stumbled into the wrong forum. If you wish to partake of sensible discussion, ditch the login, or no-one will ever take you seriously.
    Let's keep it sensible and constructive, please.
    (IMHO only)

  • How a java program talk to VB6.0 program and exchange files??

    Hi, all friends,
    I just got a project that ask for make two programs, one using vb6.0 and another one using java. These two programs will communicate and exchange files. It sounds strange. Can I use corba? if so, can any one give me the details of step by step. Or some other solutions. Thanks in advance.

    I do not know why you are stuck with such a architecture but i am sure is that this is not a pleasant situation. VB and java are way apart.
    Anyway given with the situation and assuming that you just want to exchange files (not variable or inter method calls)..
    Solution 1) Fix up two different directories for Java and VB application. And Each application puts files on the other directory when it wants to exhange files. Respective applications keep checking their directories for new files and its kicks of its processing once it finds a new file.
    Your exchange file contains all the detials in the agreed format. The new files are loaded in the application and it gets all the details of what it needs to do.
    (WITH SOLUTION 2 to 4 you can make inter method calls)
    Solution 2) Look into JNI(Java Native interface) through which Java can call a native method in a DLL. That dll is loaded inside the JVM and executed. The dll can also call Java method. And the DLL can communicate to the VB Applicaiton through remote method call or COM interface.
    Solution 3) If you get a chance to work with .NET architecture then web services is the one which you can try. VB and Java application can interact with each other through Web services.
    Solution 4) There are a few Java to COM bridge available in the market. Write a com object with VB and iteract between the Java code and the COM Code.
    These are all the options i can come up with. But any of the solution will not be fun as all will have limitations and learning curve to it.
    Srinivasan Ranganathan

  • How execute java program through crontab in linux

    i have written in crontab like
    * * * * * cd /usr/java/jdk1.5.0/bin;pwd;echo $PATH; ./test2.sh 2>logjava1
    test2.sh contains
    java samle
    in logjava1 the error is java :command not found
    Please help me .this is not working

    Is . in your path?
    I'd add the JDK Bin folder into your path

  • How can my java program launch other applications?

    can anyone link me, provide some keywords, or information on how a java program can execute another program... for example, a button click would launch acrobat, firefox, or (in particular) another java application.

    don't read all that much fantasy.
    I've read Eddings' Belgariad and Malloreon, which I really liked at the time but which are not even in the same league as GRRM. The characters are much more one-dimensional, and the plot gets cornier as you go along.
    IVE READ BELGARIOD... AGREE THAT IT WAS PRETTY SHALLOW AND I READ IT AFTER LOTR SO IT WAS SUCH A PALE RIPOFF IN COMPARISON
    His Elenium and Tamuli series were a little better, but still far from Ice and Fire.
    Tolkein, of course, but you've probably heard of him. :-)
    Donaldson's Mirror of Her Dreams and A Man Rides through were good.
    HAVENT READ THESE, WILL ADD TO MY LIST, THANKS!
    Terry Brooks' Shanara series is supposed to be pretty good, and I think Anne McCaffery's Dragonriders of Pern series is considered to be among the classics, but I've never read either one.
    READ SOME BROOKS AND FOUND IT SHALLOW LIKE EDDINGS. HAVE READ MCCAFFERY BUT NOT DRAGONRIDERS, AND THE TRILOGY I READ WAS OK BUT THE TONE WAS REALLY GOOFY. A GROUP OF REFUGES ON A NEW PLANET AT A TIME WHEN THE HUMAN RACE IS ENSLAVED BY ALIENS, AND THE BOOK SEEMED TO FOCUS ON HOW FUN BUILDING A CAMP WAS ON THE NEW PLANET AND EVERYONE WAS REALLY PEPPY WHICH FELT ODD GIVEN THE CIRCUMSTANCES OF THE SETTING.
    Michael Moorcock's Elric series was very good, also very dark. It was kind of... I don't know... odd. Like you'd want to light up a bong and put on some Floyd while reading it.
    HAVENT READ EITHER, ANOTHER FOR THE LIST, THANKS AGAIN!
    There's another series of 2 or 3 books that I read a few years ago and really liked, but I can't for the life of me remember the author, the books, any characters names...
    P.S. If you want to talk about a nag of a female character, you gotta love (as in hate) Cersei. She gets her on POV in Feast. Good stuff.
    YEAH I LIKE CERSEI ACTUALLY. GRRM IS GOOD IN HOW THERE REALLY IS NO MAIN CHARACTER AND EVERYONE IS VERY EXCITING TO READ. RJ ON THE OTHERHAND HAS A DEFINATE CENTRAL CHARACTER TO THE PLOT, AND CHAPTER AFTER CHAPTER OF SOME OF THE FEMALE POV'S GOT AGGRAVATING ESPECIALLY WHEN THEY NAG SO MUCH THE TRUER HEROS OF THE STORY (MY OPINION)... ITS LIKE, SHUT YOUR MOUTH AND LET THEM SAVE THE DAY ALREADY... HEHE... BUT YOU'LL SEE OR HAVE A DIFFERENT OPINION ENTIRELY.
    to you i recommend orson scott card... you've probably read ender's game but he has some really good fantasy too... the homecoming series (first book call of earth or memory of earth) was really good, and the alvin maker series is ok plotwise but the characters are incredible... i found a lot of humor and witty dialog in that series and enjoyed it immensely. anyways, thanks again for the list additions, will read feast of crows first, hopefully soon. glad to hear you're liking it... some reviews on amazon weren't stellar.

  • Running a java program over network

    Hi,
    How a java program on a machine can be run without having JRE on the same machine, rather interpreting bytecode over network having JRE on another machine?

    Rahul.Kumar wrote:
    well, so my java program is running on x. Initialy X had JRE and on invoking java program from command prompt, it had looked for JRE at path, set in environmental settings. Now I moved JRE to another machine Y and connected these two machines (X and Y). You have two machines X and Y.
    "Connected" or not has nothing to do with this discussion.
    In X path is set to the JRE on Y. The path on X has absolutely nothing to do with anything on Y.
    Now execute java program on X, theoretically it should work or what is wrong with this?This makes no sense. Presuming you meant Y in the above then the following must be true.
    1. You must have a JRE on Y.
    2. You must have a java application on Y (or one accessible via the file system on Y.)
    3. You must be on Y and start the JRE passing the java application that is on Y to it.
    Notice in the above there is no mention of X. There can be no mention of X.

  • How to invoke another Java file in Java program?

    Hello all,
    Now I am building a commnity of agents that can talk in Java, I have another Java-Based dialogue system to handle the dialogue between the agents. But I don'y know how to invoke the Java dialogue system file in the agent class.
    Is there any methods can call another .java file in a Java program?
    Help!!!!!please

    Yep, vaguest of the vaguey vague vague.
    Anyhoo,
    I'm guessing you want to call a method from a different class?
    Assuming you have the "Runner" class and then "Agent1", "Agent2", etc.
    Agent1 whatever = new Agent1();

  • How to invoke a Java Program from Oracle 10g?(uRGENT)

    Hello.
    I've a query, that i have a program, that basically retreives the records from the
    oracle table and then parser this information and then insert the values in corresponding database base tables. I want that, whenever the new program is inserted, a Trigger should fire and pass the most recently entered record to the Parser Program, means
    1) Firing a Trigge
    2)Storing the most latest data and pass it to the Parser PROGRAM
    Can someone tell me how to do this? How to invoke a Java Program from within the database? Please if anyone has examples provide me. Its very urgent and tell me what is the basic mechanism.
    Thankyou.
    Ben

    With Java Stored Procedures Java may be caleed from a database.
    http://www.oracle.com/technology/tech/java/jsp/index.html

  • How to invoke browser from java program in Solaris ?

    Hi all,
    Is there any way by which a browser can be opened with specific URL, from a java program in solaris OS ?
    In windows I am able to do so by using "rundll32 url.dll,FileProtocolHandler".
    Thanks,
    ngs

    Well, how is a browser normally invoked on Solaris? And have a look at JDIC, maybe it helps you.

  • How do i search mapi and invoke it by java program ?

    how do i search mapi programme and invoke it by java program ?
    plz help ?

    Write a C/C++ DLL to access MAPI and then use JNI to invoke the functions from Java.
    -Aprajit

Maybe you are looking for

  • I cannot update or download my creative cloud I am getting an error message

    I am getting an error message on all the products that need installed and /or updated  it is U44MIP7.  Please help as I am neding the creative cloud for school and cannot access the programs.

  • Impossible to access File server shares using a DNS alias

    I am currently testing migration scenarios to replace 2 standalone W2K3 File Servers into 1 W2K8R2 Failover Cluster. Everything went very well, shares are well accessible as long as I use the new File Server names, but... ... when I try to use DNS al

  • InputNumberSlider can not be converted

    On the Oracle 11g database, there is a field of Number(1,0) type. When dragged and dropped from the ViewObject under the AppModuleDataControl, the field is added to the page as af:inputText w/Label. Then I converted the af:inputText to af:inputNumber

  • Converting Word, Excel, and others in 1 pfd file

    Hi, Can I take multiple word, excel, and publisher docs and convert them into a single multiple page pdf file? Right now I am trying the free online version and I can create a pdf but then I wish to add files to that pdf that I just created. Long sto

  • Incoming Invoice Parking through ALE

    Hello Gurus, We have a scenario in which we trigger a IDoc on saving of VF01 transaction( INVOIC01). We send this IDoc to the other SAP system. Here we have to park this Invoice through MIR7. Here the reference for parking Invoice is PO for Thirty Pa