• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run .class file from Unix shell script

 
Murali Sridhar
Ranch Hand
Posts: 44
Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !!
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried? Shell scripts work just about the same as you would do on the command line.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic