• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Calling a java program(main method ) from a shell script

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have a requirement wherein I need to call a java program from the shell script. I am a java developer and have no idea on shell scripting. Can anyone out there please give me the exact code which I can use for my purpose. I request and appreciate any immediate help.

P.S- The shell script will inturn be called from an autosys .jil files.
 
author and iconoclast
Posts: 24203
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To invoke a Java class, you'd use...

java ClassName

Same as on Windows, if that's what you're used to. Now, all the other stuff around it -- that might be harder!
 
Srivatsan Shyam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ernest Friedman-Hill wrote:To invoke a Java class, you'd use...

java ClassName

Same as on Windows, if that's what you're used to. Now, all the other stuff around it -- that might be harder!






HI,

Thanks for the reply. But as I have no idea on shell scripting, I would be really helpful if you give me the exact code I should use.

Thanks in advance
 
Rancher
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shell scripting is a useful thing to know, at least the basics of it. Start here: Bash Guide for Beginners
 
Srivatsan Shyam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:Shell scripting is a useful thing to know, at least the basics of it. Start here: Bash Guide for Beginners




Thank You.....that site is cool.......
reply
    Bookmark Topic Watch Topic
  • New Topic