Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

shell script to start, stop and restart a JAR under linux

807599Feb 18 2007 — edited Sep 25 2008
Hi everyone,

Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can also indicate a method or parameter? Thanks!

this JAR inculdes a class with main method like this:

public class Client(){

public Client(String name){
...
}

public void stopClient(){
...
}

public static void main(String[] args){
new Client("/tmp/text.log");
}

}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2008
Added on Feb 18 2007
10 comments
2,044 views