We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › opening a program  from processing
Page Index Toggle Pages: 1
opening a program  from processing (Read 383 times)
opening a program  from processing
Mar 18th, 2006, 7:02pm
 
hello list , how can i open a program from a processing application?
i using processing for creating guis for my puredata patches... and i need that when i open to my processing application it open puredata software, how can i do this?

i was trying the open() function but it seems it doesnt work..
im getting this:

Opening Process_4


java.io.IOException: CreateProcess: cmd /c "soco.exe" error=0

at java.lang.Win32Process.create(Native Method)

at java.lang.Win32Process.<init>(Unknown Source)

at java.lang.Runtime.execInternal(Native Method)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at processing.core.PApplet.open(PApplet.java:1917)

at Temporary_3360_7267.mousePressed(Temporary_3360_7267.java:11)

at processing.core.PApplet.handleMouseEvent(PApplet.java:1435)

at processing.core.PApplet.dequeueMouseEvents(PApplet.java:1381)

at processing.core.PApplet.display(PApplet.java:1257)

at processing.core.PGraphics.requestDisplay(PGraphics.java:520)

at processing.core.PApplet.run(PApplet.java:1046)

at java.lang.Thread.run(Unknown Source)



java.lang.RuntimeException: Could not open soco.exe

at processing.core.PApplet.open(PApplet.java:1920)

at Temporary_3360_7267.mousePressed(Temporary_3360_7267.java:11)

at processing.core.PApplet.handleMouseEvent(PApplet.java:1435)

at processing.core.PApplet.dequeueMouseEvents(PApplet.java:1381)

at processing.core.PApplet.display(PApplet.java:1257)

at processing.core.PGraphics.requestDisplay(PGraphics.java:520)

at processing.core.PApplet.run(PApplet.java:1046)

at java.lang.Thread.run(Unknown Source)


Any hint?

punchik
Re: opening a program  from processing
Reply #1 - Mar 19th, 2006, 5:21am
 
is soco.exe in your path? if not, you should include the full path to the exe file, otherwise there's no way for windows to find it.
Page Index Toggle Pages: 1