0

How can I run java class file using a script file in Linux at boot time?

I have some java class file .I want that file should run at boot time when machine restart.I want to write a Script file that run those of my java classes at machine startup.

  • How this question is duplicate. I dnt find any answer on these. I am not asking about "How to run Script at startup". My question is to run java class file using script . – ABHISHEK_SiNGH Dec 07 '15 at 04:20

1 Answers1

0

What linux distro are you using?

If you use Ubuntu then you can take a look at the upstart deamon which handles the task of starting processes during boot.

In general you create a script under /etc/init.d, described in detail here

Since i only created bash scripts there and i dont know much about Java this link might be helpful

Community
  • 1
  • 1
theDrifter
  • 1,631
  • 6
  • 24
  • 40