Sai Ye Yan Naing Aye
Sai Ye Yan Naing Aye

Reputation: 6740

How to execute java code using shell script?

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.

Upvotes: 0

Views: 11116

Answers (1)

Tom
Tom

Reputation: 44821

As in, like this you mean?

#!/bin/sh
java -jar your-java-compiled-into-a.jar

Upvotes: 2

Related Questions