How to run my code in Intellij Idea automatically when Windows starts

Answered

Hi so sometimes the windows system crashes but I need to make sure that my code is constantly running because it's a trading bot for Bitcoin. So how to make my code automatically start running after unexpected reboot. (Basically how to do a automatic start of Intellij Idea + pressing the green run button?) Thanks in advance!!

0
3 comments

There is no way to automate it in IntelliJ IDEA. You should compile your app and deploy it as a Windows service so that system starts it automatically in background, this tool is really useful: https://wrapper.tanukisoftware.com/doc/english/download.jsp .

0
Avatar
Permanently deleted user

Thanks! Will this sacrifice performance though? 

0

It has no impact on your code performance.

0

Please sign in to leave a comment.