LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-09-2012, 01:11 PM   #1
Mundlamuri
LQ Newbie
 
Registered: Jul 2011
Posts: 6

Rep: Reputation: Disabled
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
 
Old 02-09-2012, 01:18 PM   #2
Mundlamuri
LQ Newbie
 
Registered: Jul 2011
Posts: 6

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

Thanks,
M
 
  


Reply

Tags
java, shell script



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing a Shell script with 654 permissions inside another shell script. changusee2k Linux - Newbie 2 06-07-2011 07:58 PM
executing shell script from java application maheshkodamati Programming 5 02-24-2008 11:39 AM
executing java class file niranjan_mr Linux - Software 1 12-27-2004 02:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration