The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
JAVA - environment variable not passing Cailet Shell Programming and Scripting 0 11-06-2007 09:40 AM
Solaris 10.0 PATH environment XNOR UNIX for Dummies Questions & Answers 10 04-09-2007 08:24 PM
speeding up the compilation on SUN Solaris environment swamymns Shell Programming and Scripting 2 07-12-2006 09:06 AM
read binary data on solaris 9 yanhu SUN Solaris 1 03-22-2004 10:49 AM
Java Programming in UNIX Environment cub Post Here to Contact Site Administrators and Moderators 1 06-25-2002 05:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2008
Registered User
 

Join Date: Apr 2008
Posts: 56
Binary not getting executed from Java on Solaris environment

In the Java programme, I am calling function, "Runtime.getRuntime().exec( cmdarray ); " with the array of arguments in which first argument is the binary(C-executable) file and argv1,argv2 and so on. This will be executed on Sun OS system.. I can execute using "sh -c cmdarray" on the shell environment without any problem...I have to execute without "sh -c" since the parent process ends due to execv system call (in binary file) and launches new process image....When i tried executing cmd array without "sh -c" prefix, it is failing with IOException as shown below,

Error: /finder/95s/ed/bin/or_run_report 'INSTALL/install@fnd9i' SPIDER /users/sch83995/1214981744605_0.lst /finder/95s/ed/scripts/well_checkshot_survey.sql 'NULL' 'WELLS' SQLPLUS noprint delete DISPLAY 131374 'Checkshot survey data report' REP_1214981744688_1 : not found. Unable to run report 'Checkshot survey data report'. Please try again.


Any help is appreciated !!
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0