This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes How to run .class file from Unix shell script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "How to run .class file from Unix shell script" Watch "How to run .class file from Unix shell script" New topic

How to run .class file from Unix shell script

Murali Sridhar
Ranch Hand

Joined: Feb 16, 2009
Posts: 44


I'm newbie to Java with Unix.

I would like to know how to write a shell script to run the .class file, which in turn loads the properties files.

Appreciated your help !!

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
What have you tried? Shell scripts work just about the same as you would do on the command line.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

You can look at shell scripts that are provided with various Java apps (Ant, Maven, JMeter, etc) as examples, though they tend to be rather involved. The JBoss in Action source code comes with several basic scripts used to run the examples (search for *.sh).

JBoss In Action
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How to run .class file from Unix shell script
It's not a secret anymore!