Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

unix shell script to batch file for windows

807605Oct 8 2007 — edited Oct 8 2007
Hello all,
Iam writing a program in java in unix environment and iam executing using shell scripts in unix this program is for client-server environment
which look like this:
For server:
#! /bin/ksh

export CLASSPATH=/user/vpp/jal/classes:$CLASSPATH
#set var for filename config file
export JAL_CONF_FILE=/user/vpp/jal/conf/JALapp.conf
java -DJAL_CONF_FILE=$JAL_CONF_FILE jalsvr/JALTCPServer 7776
for client side it is
#! /bin/ksh

export CLASSPATH=/user/vpp/jal/classes:$CLASSPATH
echo $CLASSPATH
java jalcl/JALTCPClient msoc05:7776
my question is know i want to execute them in windows by creating batch files runsvr.bat, runcl.batbut how
i gave PATH by giving JRE path but what is the replacement of export because iam having all class files
in /jalcl for clients and /jalsvr for server but want to create this batch file in separate /bin folder how to do.please help me
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2007
Added on Oct 8 2007
3 comments
636 views