LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   executing java class from shell script (https://www.linuxquestions.org/questions/programming-9/executing-java-class-from-shell-script-928522/)

Mundlamuri 02-09-2012 01:11 PM

executing java class from shell script
 
Hi All ,
I have a problem in my shell script. my script will execute java class. for the java class i need to send some system properties. so i have used following command in the shell script. but in my java code , i am not getting that system property . please help me.

java -D<proName>=<value> myClass

Thanks,
Mundlamuri

Mundlamuri 02-09-2012 01:18 PM

Hi,
I have tried 'export JAVA_OPTS=${JAVA_OPTS} -D<propname>=<propValue>' this command also , but no luck... please help me.

Thanks,
M


All times are GMT -5. The time now is 09:54 AM.