Decompiled .class file. Why?



I tried to find a reply to my answer on stack but it's not exactly the same problem  I have (I am new to IntelliJ).

I copy-pasted a java file called in another project and tried to open it from here. It did not work and I got an error message (could not find main I believe). I deleted the copied file, but I have now an Apples.class which is decompiled in the original project I copied from. Why is that? Can I just delete it?

1 comment

Your project is set up wrong, you put a compiled class in a directory marked as containing sources.

Also, not using packages for your classes is a recipe for disaster.

Looks like As a result IntelliJ cannot know where the source file for that class file is and thus gives up trying to load it.


Please sign in to leave a comment.