By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,673 Members | 1,310 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,673 IT Pros & Developers. It's quick & easy.

Execute java class from Unix shell script

P: 1
I had written a shell script, now i need write commands in this script to run the java class so that when that script is run it also runs the java class.


Thanks in Advance
-Amit
Feb 13 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 849
Assuming the class has been compiled into bytecode (the .class file), you should be able to run it like any other command with the java command. The java command (to my knowledge) does require the .class to be in the current directory, though...Maybe a .jar?
Feb 13 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.