Errors when compiling a java program with maven on windows

2010-10-24T08:17:55

I'm attempting to compile javabot on windows using maven 2. I've compiled java programs in the past ( so I know the default JDK is working correctly), and this is my first time using maven. The error I'm getting is:

[INFO] Compilation failure

\evanchooly-javabot-dbea131\apt-tools\src\main\java\javabot\maven\Indexer.java:[23,37] package com.sun.tools.javac.processing does not exist error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider javabot.maven.Indexer not found

I (think) I've correctly set all the environment variables correctly, as directed to on the maven download page, as well as having upgraded to Java 1.6.0_22, and still the same errors.

I've contacted other people, who've told me that maven is able to compile the program correctly on OSX and Linux without any problems. Could someone give me clear instructions of what would need to be done to compile javabot on windows using maven? Thanks. (I'm running windows XP, 32 bit)

Copyright License:
Author:「maslen」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/4006688/errors-when-compiling-a-java-program-with-maven-on-windows

About “Errors when compiling a java program with maven on windows” questions

I'm attempting to compile javabot on windows using maven 2. I've compiled java programs in the past ( so I know the default JDK is working correctly), and this is my first time using maven. The err...
I am trying to use Jangaroo to convert FLEX to HTML 5 and JavaScript. In order to do so I need to use Maven, and when compiling Maven (mvn compile), I get a couple errors. The errors are displayed ...
I'm trying to use maven on my project but i'm getting this error everytime and dont know how to fix it. Below are all my settings : Java Versoin: C:\Users\TomBo\Downloads\AnimalShelterJavaGUI&gt...
I have compilation error on compiling with maven. [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Unable to locate the Javac Compiler in:...
I use Eclipse Version: Mars.2 Release (4.5.2) Build id: 20160218-0600 and maven (mvn -v) Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T13:57:37+02:00) Maven home: C:...
I have a problems compiling simple "Hello World" program in CLion on Linux Solus. Might be because of wrong compiler settings, or something like that, but I ran out of ideas, so I'll be happy if an...
I am trying to compile my project with Java 11. When I try to run the application with Java 8 as the Java version in pom.xml, it works fine. But when I try to run it with Java 11, it throws an erro...
I'm using maven in my projects and my classes does not have any error but when i use mvn compile & package it gives me a various error as below: [ERROR] Failed to execute goal org.apache.maven.
I'm trying to build the Java run time library for Protocol Buffers. I've got errors on both Windows and OS X by following the README instruction under the Java directory in the Protocol Buffers pro...
I get this error when I run mvn clean package in my IntelliJ terminal: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project prot...

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.