1

I need to start my java class like a background process without using jsvc. How could I do this?

1 Answer 1

2

In linux you can easily do it with :

java -jar myjar.jar & 

Under windows you can try using the javaw instead of java :

javaw -jar myjar.jar 

Otherwise you will need Apache Commons Daemon service or daemon wrapper.

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you very much. I needed command for Windows. It works ^_^
@EJP Yep. I don't need daemon thread exactly. Just wanna start app in background.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.