Reputation: 6740
Possible duplicate "How to run Unix shell script from Java code?".
I would like to know how to execute java code using shell script?
I want to know is :
shell script executes java code.
I don't want to know is
java code executes shell script.
cent0s 5.5 (64-bit)
.Upvotes: 0
Views: 11116
Reputation: 44821
As in, like this you mean?
#!/bin/sh
java -jar your-java-compiled-into-a.jar
Upvotes: 2