DigitRecognizer icon indicating copy to clipboard operation
DigitRecognizer copied to clipboard

Java Compilation Error

Open Rajendran100 opened this issue 7 years ago • 1 comments

When compiling the code, getting the following error,

Please guide me to resolve this issue.

ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project DigitRecognizer: Compilation failure: Compilation failure: ERROR] error reading C:\Users.m2\repository\junit\junit\4.8.2\junit-4.8.2.jar; invalid LOC header (bad signature) ERROR] /C:/DigitRecognizer-master/src/main/java/ramo/klevis/Run.java:[19,26] cannot find symbol ERROR] symbol: class Logger ERROR] location: class ramo.klevis.Run ERROR] -> [Help 1] rg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project DigitRecognizer: Compilation failure at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

Rajendran100 avatar Nov 27 '18 13:11 Rajendran100

Hi , maybe you can try to delete C:\Users.m2\repository\junit\junit\4.8.2\junit-4.8.2.jar; from maven and than re download as the existing one can be corrupted.

klevis avatar Nov 27 '18 16:11 klevis