1

I usually compile and execute from Java project using eclipse IDE. Now, I need to write a bash script to submit this task to a cluster. My project contains 3 packages and has been written as per the Maven architecture. Can anyone hint me as to how can I include the task of executing the java program in the my bash script?

I tried different things like first trying to execute the project using command line but it does not work. I already read the replies provided in this post: Compiling and running multiple packages using the command line in Java and some others, but didn't help.

Thank you for your help.

5
  • 1
    go through Maven App Assembler plugin Commented Oct 14, 2013 at 14:41
  • 1
    @SSP any reason you mention this a comment rather than up-vote my answer which says basically the same thing? Commented Oct 14, 2013 at 14:42
  • 1
    I did not saw that. will delete it and upvote for you. Commented Oct 14, 2013 at 14:43
  • 1
    It's happened becaz when i open this question there was no answer. Commented Oct 14, 2013 at 14:45
  • 1
    @SSP: good deal, and odd; usually I see comments and answers stream in almost instantly. Commented Oct 14, 2013 at 15:06

1 Answer 1

1

I strongly suggest you look into something like the Maven App Assembler plugin. I don't know about your cluster but the mentioned plugin can create run scripts for most major OSes and is highly configurable.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.