11

I want to setup Tomcat in Eclipse Luna to automatically restart, means opposite of this or this

When developing servlet, after changing my java code and then ran it Eclipse asked me to whether to restart the Tomcat or not. I clicked "no" and checked "remember my choice".

So every time, when I run servlet, the Tomcat will NOT automatically restart.

Where can I turn ON that feature (i.e., to clear "remember my choice" and set it opposite way).

I already tried opposite of what is advised in those two links but to no success. I tried both with "Modules auto reload by default" checked and unchecked.

UPDATE
I also tried to delete Tomcat several times and configure all over again, but it didn't help either. Here are available settings:

Tomcat settings in Eclipse Luna

Community
  • 1
  • 1
Nenad Bulatović
  • 7,238
  • 14
  • 83
  • 113
  • 1
    I dont know the answer to this. But I guess you can always delete the current tomcat runtime in eclipse and create a new one. Then, it should give you that choice the first time again and you can choose wisely. – Mukul Goel Jan 09 '15 at 16:21
  • @MukulGoel I forgot to add that - the problem is that I DELETED Tomcat several times, but it keeps that option remembered. – Nenad Bulatović Jan 09 '15 at 16:22
  • 1
    Ahhh.. Sorry brother. I cant think of anything else. If its not too much hassle and having this really important. I would replace my eclipse with a new distribution.. hahah.. :D – Mukul Goel Jan 09 '15 at 16:23
  • @MukulGoel Honestly I started to think about it as well... This already took me too much time with no success :( – Nenad Bulatović Jan 09 '15 at 16:25
  • I am sorry, I did not understand you right. Did you try to replace eclipse with a fresh copy and it did not work? – Mukul Goel Jan 09 '15 at 16:26
  • @MukulGoel No, I haven't tried it yet, but as of your comment I am considering replacing Eclipse with fresh distribution – Nenad Bulatović Jan 09 '15 at 16:28
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/68506/discussion-between-mukul-goel-and-nenad-bulatovic). – Mukul Goel Jan 09 '15 at 16:30

1 Answers1

14

What you want to do is to update/modify launching preferences(how or when the server or runtime is launched).

To update launching preferences :

Go to Window->Preferences->Server->Launching

Make the highlighted option to Always.

Source: Defining the launching preferences

enter image description here

Mukul Goel
  • 8,387
  • 6
  • 37
  • 77