Loading
Shell Script Run Java Class

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  Sample Shell Script To Run Java Class


Ans)

This is sample Shell Script gives us an idea on how to write a
Shell Script to Run a Java Class which could be a Batch Job.

YOURAPP_LIB_HOME=$HOME/lib
JDBC_LIB=/export/apps/oracli/cust/10.1.0.3/jdbc/lib
JAVA_HOME=/export/appl/gt-tools/j2sdk1.4.2_12

export YOURAPP_LIB_HOME JDBC_LIB JAVA_HOME
PATH=/usr/SYSADM/bin:/usr/sbin:.:/export/apps/sched/autosys/bin:/export/apps/sched/local/bin:
/export/apps/sched/local/sbin:/export/apps/sched/local/arch/bin:/export/apps/sched/local/arch/sbin:/usr/SYSADM/bin:/export/appl:$JAVA_HOME/bin

CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$YOURAPP_LIB_HOME/activation.jar:$YOURAPP_LIB_HOME/mail.jar:$HOME/bin:$JDBC_LIB/classes12.jar
export PATH CLASSPATH
echo $PATH
echo $CLASSPATH
java com.salesorder.batchjob.DataSync

public class DataSync {

}

 



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Shell Script Run Java Class


Shell Script Run Java Class

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free