$ ./run_test.cmd
ksh: ./run_test.cmd: cannot execute
same result
Main Topics
Browse All TopicsHello I have java Standlone application , which runs great on windows .. I have a batch file called run_test which sets all the classpaths and runs the program ,
now i need to run the same application on a unix box ... I have set all the path according to the unix box .. but when i try to run_test.cmd
i get this
ksh: run_test: not found
I have never tried to run java Stanalone application on unix box .. is there something I am missing
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
run_test.cmd looks like this
SET JAVA_BIN="/usr/java1.4.1_0
SET ALT_HOME="/prod/iec/flt/on
SET J2EE_JAR="${ALT_HOME}/seeR
SET DEPLOY_JAR="${ALT_HOME}/se
set CLASSPATH=";${DEPLOY_JAR};
${JAVA_BIN}/java -classpath .;${CLASSPATH} com.run.ieff.fff.affrt.Get
differ between windows and unix: and ;, set and export
rename your file to
run_test.ksh
run_test.kshshould look like this
#!/bin/ksh
#
#
export JAVA_HOME="/usr/java1.4.1_
export ALT_HOME="/prod/iec/flt/on
export J2EE_JAR="$ALT_HOME/seeRol
export DEPLOY_JAR="$ALT_HOME/seeR
export CLASSPATH=$CLASSPATH:$DEPL
java -classpath $CLASSPATH com.run.ieff.fff.affrt.Get
>>cannot execute
This means that the permissions aren't set properly for the file.. You need to make the file executable for whatever user group needs to be able to run it. sciuriware's suggestion makes the file read, write, and executable for everyone. If that isn't what you want then you will need to try a different mode.
1 - execute
2 - write
3 - write/execute
4 - read
5 - read/execute
6 - read/write
7 - r/w/x
The mode applies to (owner)(group)(everyone)..
following shows how to change the eol characters:
http://www.technocage.com/
Business Accounts
Answer for Membership
by: cavalmiPosted on 2005-10-18 at 10:03:35ID: 15109266
You need to either type ./run_test.cmd or put your current directory (.) in your path.