This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
Author

How to run .class file from Unix shell script

Murali Sridhar
Ranch Hand

Joined: Feb 16, 2009
Posts: 44

Hi,

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 !!


Regards,
Murali
Ulf Dittmer
Marshal

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


Ping & DNS - my free Android networking tools app
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run .class file from Unix shell script