0

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.
  • My OS version is cent0s 5.5 (64-bit).
Bhavik Ambani
  • 6,464
  • 14
  • 53
  • 86
Sai Ye Yan Naing Aye
  • 6,396
  • 10
  • 44
  • 64

1 Answers1

2

As in, like this you mean?

#!/bin/sh
java -jar your-java-compiled-into-a.jar
Tom
  • 41,437
  • 4
  • 36
  • 60