As the Subject tells:
I am trying to run a Java Console Application out of servoy.
I found the method :
application.executeProgram( )
Whe I try this:
application.executeProgram( ‘c:/report/BewerberhandoutApp.jar’, ‘#’, ‘path=c:/report’, ‘#’, ‘c:/report’)
I get the exception:
java.io.IOException: CreateProcess error=193, %1 ist keine zulässige Win32-Anwendung (This is not a valid Win32-Application)
Which, in my mind, Is correct.
But if I try this:
application.executeProgram( ‘java - jar c:/report/BewerberhandoutApp.jar’, ‘#’, ‘path=c:/report’, ‘#’, ‘c:/report’)
I get the Exception:
java.io.IOException: CreateProcess error=2, Das System kann die angegebene Datei nicht finden (The System is unable to find the specified file)
So i tried to execute a batch file:
application.executeProgram( ‘c:/report/startBwh.bat’, ‘#’, ‘path=c:/report’, ‘#’, ‘c:/report’)
but now Nothing happens…
No Console popping up, or anything else.
Anybody an idea to solve this?
Thanks in advance!
Jan
P.S. executeProgrammInBackground doesnt work either…