Binary not getting executed from Java on Solaris environment


 
Thread Tools Search this Thread
Top Forums Programming Binary not getting executed from Java on Solaris environment
# 1  
Old 07-03-2008
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 !!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

To check if the JAVA Program is successfully executed in sh shell scripting

Hi , I have written a shell script to call a java program say load_id.sh .This sh script indeed is executed implicitly in other sh script which calls 2 more sh scripts one by one. I need to check if the load_id.sh (which calls java program) is executed successfully only then continue with... (1 Reply)
Discussion started by: preema
1 Replies

2. Programming

How to replicate Ruby´s binary file reading with Java?

Hello to all guys, Maybe some expert could help me. I have a working ruby script shown below that reads a big binary file (more than 2GB). The chunks of data I want to analyze is separated by the sequence FF47 withing the binary. So, in the ruby script is defined as "line separator" =... (10 Replies)
Discussion started by: Ophiuchus
10 Replies

3. Solaris

Setting up Java environment on VMware Solaris 10

Hello chings , Oracle Solaris OS Install (JDK) My host is win7 X64 and guest is solaris 10 X64 . My share file name is sharefile10 I unzip the file from host so I dont need type tar or gzip command through solaris . I have downloaded JDK from oracle offical website and the name : ... (4 Replies)
Discussion started by: SSUUser
4 Replies

4. UNIX for Advanced & Expert Users

Why only partiial shell script got executed when called in Java

I'm trying to call shell scripts from Java for DB operations. Using a very simple test, for some reason, one line of (ALTER TABLE) in the shell simply won't be executed while the exit value from the call is "0" (valid exit). When I run the script directly in Unix, it gets executed perfectly fine!!... (4 Replies)
Discussion started by: zmwang
4 Replies

5. UNIX for Dummies Questions & Answers

No Java runtime environment (JRE) error

Hi all, I am trying to install a .bin file for that it requires IBMJava2-AMD64-142-JRE-1.4.2-13.8.x86_64.rpm to be installed. I have installed this rpm but when i try to install .bin file, it complains that no JRE found. How to solve this. Thanks in advance! #... (0 Replies)
Discussion started by: lramsb4u
0 Replies

6. Shell Programming and Scripting

c binary not being executed with shell_exec()

I have written a c program. And compiled it to make a binary. Now when i try to call this binary from php page, it is not being executed. [ (2 Replies)
Discussion started by: xerox
2 Replies

7. Solaris

application compiled on solaris 10 throwing error when executed on solaris 9

I have compiled my application on Solaris 10 with following description SunOS ldg1 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Blade-T6320 The compiler is Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 But when installing the application on Solaris 9 SunOS odcarch02 5.9... (2 Replies)
Discussion started by: ash_bit2k2
2 Replies

8. Programming

Uncompress a gzip and bzip file using java on unix solaris environment

Hi, I need to uncompress a gzip and bzip file using java on unix solaris environment. I also need to retreive the header information of the file inorder to differentiate between gzip and bzip file. Please help Pooja (0 Replies)
Discussion started by: wadhwa.pooja
0 Replies

9. Shell Programming and Scripting

JAVA - environment variable not passing

Here is part of my script: export ERT export CYE export AYE java -classpath ${CLASSPATH} -DCYE="${CYE}" -DAYE="${AYE}" -DERT="${ERT}" classname I've verified in my script that all three variables have values. Once the JAVA app runs it only has the ERT values. CYE and AYE come through as... (0 Replies)
Discussion started by: Cailet
0 Replies

10. Post Here to Contact Site Administrators and Moderators

Java Programming in UNIX Environment

A suggetion: Don't we need to start Java Programming in UNIX Environment Forum ? (1 Reply)
Discussion started by: cub
1 Replies
Login or Register to Ask a Question
AIRPORT-CONFIG(1)					      General Commands Manual						 AIRPORT-CONFIG(1)

NAME
airport-config - Configurator for the original Apple AirPort Base Station ("Graphite") and the Lucent RG-1000 base station SYNOPSIS
airport-config DESCRIPTION
airport-config allows you to manage your AirPort base station, just like the AirPort software on Mac OS X. OPTIONS
airport-config accepts no command-line options. airport-config is a wrapper script around the AirportBaseStationConfigurator.jar jar file located in /usr/share/java/airport-utils. You can set the JAVACMD environment variable to use a specific JVM instead of the one chosen by the wrapper script. Set the DEBUG environ- ment variable to 1 to get the debug output from the wrapper script. ENVIRONMENT VARIABLES
DEBUG Set this variable to 1 to get the debug output from the wrapper script. JAVACMD The full path to the Java Virtual Machine to use. By default, the wrapper uses JAVACMD; if it is not set, it looks for JAVA_BINDIR/java, then for JAVA_HOME/bin/java before looking for a java executable in the PATH. In the latter case, the JVM used can be configured using the Debian alternatives system (see update-alternatives(8)). JAVA_HOME The full path where your JDK/JRE is installed. JAVA_BINDIR The full path to the directory where the java executable is located. JAVA_ARGS Extra command-line arguments to be passed to the Java Virtual Machine. AUTHOR
airport-config was written by Jon Sevy <jsevy@cs.drexel.edu>. This manual page was written by Julien BLACHE <jblache@debian.org>, for the Debian project (but may be used by others). May 20, 2006 AIRPORT-CONFIG(1)