Class Files Dissappear Upon Compilation

I'm brand new to IntelliJ but have been working with java for years. In IntelliJ IDEA 12.1.6, when I first create a .java file and then compile it, the .class file with the same name appears in the 'out/production' folder just as its supposed to. But if I do anything to the java file to get a compile error, the class file dissappears from the folder. WHAT.....THE.....HECK????!?!?!?!?!? Is this some weird setting in IntelliJ? Do I have a bad installation?

1 comment

Well Stack Overflow beat you to the punch:

"This is because IntelliJ is rebuilding automatically when you change the  file. To avoid having the files deleted, go to the Compiler section in  the Properties (Cmd+, [Mac] Ctrl+Alt+S [Win]) and uncheck the "Clear  output directory on rebuild"."

Exactly what I was looking for.

0

Please sign in to leave a comment.