jdee icon indicating copy to clipboard operation
jdee copied to clipboard

Compiler Error target/classes directory

Open MiyamotoAkira opened this issue 7 years ago • 1 comments

If I create a basic system (I was following the spring guides), with just the pom.xml file and a java class, I keep getting this error: javac: directory not found: (myfolderstructure)/target/classes Compilation exited abnormally with code 2 at Thu Jun 22 14:19:57

Once I run on the command line mvn compile, that directory is created and the issue disappears.

MiyamotoAkira avatar Jun 22 '17 13:06 MiyamotoAkira

This happens, because JDEE assumes that the directory with compiled classes (target/classes in this case) is already present, which of course is not the case on a fresh project or after performing mvn clean.

JDEE should check if the classes directory is there and create it if it's not.

pwojnowski avatar Jun 08 '18 09:06 pwojnowski