Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call Java program without showing Windows' CMD window
Message
From
23/01/2017 21:15:04
 
 
To
21/01/2017 05:15:51
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
General information
Forum:
Visual FoxPro
Category:
Web Services
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01646928
Message ID:
01646973
Views:
40
>You already have a couple of answers revolvng around Shellexecute. Depending on your needs you might wish for even tighter integration. Around turn of millenium I was involved in integrating Java routines in a vfp program calling those Java routines directly as biz layer.
>We went with a free COM integration packet called JACOB (IIRC JAva Com Object Broker) which worked without problem.
>
>Have read somewhere that a new project was created as follow up, you might still start googling with JACOB java com integration to follow if you need that level of integration.
>
>One of the benefits is it loads the Java runtime coupled to the original vfp process and keeps it loaded for more calls into it: the java startup sequence is only encountered once. Doable with totally separate processes, but would rquire even more unnecessary code ;-))
>
>
>
>>Hello, I have a program that has to comunicate via a Java program that communicates with a web service by sending an XML file. I have to do this:
>>
>>
>>
>>RUN java DHLClient.java "c:\requests\XmlRequestFile.xls" "https://xmlpi-ea.mySupplier.com/XMLmySupplierServlet" "c:\responses\ResponseXML.xml"
>>
>>
>>It shows me a windows with a black background, which, I suppose, is the cmd window, and after processing the file it closes automatically.
>>
>>What I want is NOT to show that window and, instead, show a message with something like a WAIT WINDOW command.
>>
>>Is there a way to call that command without showing a black CMD or Java window?
>>
>>TIA

I've searched for it but could not find it. Can you point me in the right direction? I find it very interesting because I have to call java many times consecutively and I guess it can save me precious time.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform