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,557
  • 14
  • 55
  • 86
Sai Ye Yan Naing Aye
  • 6,622
  • 12
  • 47
  • 65

1 Answers1

2

As in, like this you mean?

#!/bin/sh
java -jar your-java-compiled-into-a.jar
Tom
  • 43,583
  • 4
  • 41
  • 61