Jack, Is "/home/jsg3/app" an executable shell script? (did you give it execute permissions?) Or is it the C++ program itself? Does it run from a Linux command prompt?
- John Jack Gundrum wrote: > > Thanks for the pointer, it was very easy with windows but not so easy with > linux. > > The following worked with windows > try > { > Runtime rt = Runtime.getRuntime(); > Process proc = rt.exec("app.exe"); > } catch (Throwable t) > { > t.printStackTrace(); > } > > This would not work with linux > try > { > Runtime rt = Runtime.getRuntime(); > Process proc = rt.exec("/home/jsg3/app"); > } catch (Throwable t) > { > t.printStackTrace(); > } > > The permissions are set to allow Java to execute the file but it doesnt? > Even as root Java would not run the file? > > At 12:14 PM 3/17/2003 -0300, you wrote: > >Hi. > >Not quite easy. > >Take a look for a good example of runtime.exec at > >www.javaworld.com > >direct link here: > >http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html > > > >I lose some hair until I found above article some months ago... > > > >Alessandro > > > > > >----- Original Message ----- > >From: "John Wright" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Monday, March 17, 2003 12:01 PM > >Subject: Re: [JAVA3D] Java and C++ > > > > > > > Jack, > > > > > > You want runtime.exec(name); > > > > > > - John Wright > > > Starfire Research > > > > > > Jack Gundrum wrote: > > > > > > > > Does anyone know how to launch a C++ executable file from a Java3D app? > > > > I am using Linux and would like to pass a arg and then launch the C++ > >exe > > > > from my Java3D app. I found Runtime.getRuntime().load(name)? > > > > > > > > ******************** > > > > Jack S. Gundrum > > > > Visualization Group > > > > Research Support > > > > Academic Services and Emerging Technology Systems > > > > Information Technology Services > > > > Penn State University > > > > > > > > > >=========================================================================== > > > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > >body > > > > of the message "signoff JAVA3D-INTEREST". For general help, send email > >to > > > > [EMAIL PROTECTED] and include in the body of the message "help". > > > > > > > >=========================================================================== > > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > >body > > > of the message "signoff JAVA3D-INTEREST". For general help, send email to > > > [EMAIL PROTECTED] and include in the body of the message "help". > > > >_______________________________________________________________________ > >Busca Yahoo! > >O serviço de busca mais completo da Internet. O que você pensar o Yahoo! > >encontra. > >http://br.busca.yahoo.com/ > > > >=========================================================================== > >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > >of the message "signoff JAVA3D-INTEREST". For general help, send email to > >[EMAIL PROTECTED] and include in the body of the message "help". > > ******************** > Jack S. Gundrum > Visualization Group > Research Support > Academic Services and Emerging Technology Systems > Information Technology Services > Penn State University > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".