The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-29-2008
mncduffy mncduffy is offline
Registered User
 

Join Date: Jan 2008
Posts: 5
cannot execute message

I am trying to install a piece of software using the provided install script, but when I run it, I get the following message: ./tem.sh[15]: /export/home/data/SoftwareSource/TcEng2005SR1/install/jre/bin/java: cannot execute

I navigated to that directory and tried to execute java and it returns the same message:
$ ./java
ksh: ./java: cannot execute

The install script is as follows:
#!/bin/ksh

SCRIPTDIR=`dirname $0` # The dir containing this script.
SCRIPTDIR=`cd ${SCRIPTDIR}; pwd` # Convert it to an absolute path -

cd ${SCRIPTDIR}

JARS=`ls -m install/*.jar|tr -s ',' ':'|tr -d ' \n'`

${SCRIPTDIR}/install/jre/bin/java -cp ${JARS} com.teamcenter.install.tem.struct.Tem $1 $2 $3

Any help is much appreciated,
mncduffy
Reply With Quote
Remove advertisements
!!
Forum Sponsor