You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by McElroy Sean <Se...@uk.fujitsu.com> on 2009/06/29 17:29:39 UTC
tools.jar
Hello,
I'm getting this error: java.lang.ClassNotFoundException:
com.sun.mirror.apt.AnnotationProcessorFactory, when I try to compile a
web-service project using jaxws-maven-plugin. I understand that this
problem relates to tools.jar. So having read the FAQ on the Maven site I
added this to my pom:
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.6/version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
but this didn't fix the problem. I have read a few posts about this but
none have provided the answer. Has anyone solved this?
Thanks,
Seam
RE: tools.jar
Posted by McElroy Sean <Se...@uk.fujitsu.com>.
Thanks Roman.
I have checked the maven version and the java home value is correct:
C:\Program Files\Java\jdk1.6.0_06
-----Original Message-----
From: Roman Kournjaev [mailto:kournjaev@gmail.com]
Sent: 29 June 2009 17:04
To: Maven Users List
Subject: Re: tools.jar
Hi
I had this problem a few times. Its definitely a jdk problem.
check your mvn -version , verify it takes the right java home.
C:\Documents and Settings\rkournja>mvn -version
Maven version: 2.0.9
Java version: 1.5.0_18
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
C:\Documents and Settings\rkournja>ECHO %JAVA_HOME%
C:\Program Files\Java\jdk1.5.0_18
Roman
On Mon, Jun 29, 2009 at 6:46 PM, McElroy Sean
<Se...@uk.fujitsu.com>wrote:
> Hello,
>
> My JAVA_HOME variable points to: C:\Program Files\Java\jdk1.6.0_06
>
> Regards,
>
> Seam
>
> -----Original Message-----
> From: Roman Kournjaev [mailto:kournjaev@gmail.com]
> Sent: 29 June 2009 16:36
> To: Maven Users List
> Subject: Re: tools.jar
>
> Hi
>
>
> You ll probably will get rid of this error if you run will have the
JDK
> ,
> instaead of the JRE in your PATH.
> Check your JAVA_HOME , it should always point to a JDK when working
with
> maven.
>
>
> The tools.jar is already inside the jdk in its the lib folder.
>
> Roman
>
> On Mon, Jun 29, 2009 at 6:29 PM, McElroy Sean
> <Se...@uk.fujitsu.com>wrote:
>
> > Hello,
> >
> >
> >
> > I'm getting this error: java.lang.ClassNotFoundException:
> > com.sun.mirror.apt.AnnotationProcessorFactory, when I try to compile
a
> > web-service project using jaxws-maven-plugin. I understand that this
> > problem relates to tools.jar. So having read the FAQ on the Maven
site
> I
> > added this to my pom:
> >
> >
> >
> > <dependency>
> >
> > <groupId>com.sun</groupId>
> >
> > <artifactId>tools</artifactId>
> >
> > <version>1.6/version>
> >
> > <scope>system</scope>
> >
> > <systemPath>${java.home}/../lib/tools.jar</systemPath>
> >
> > </dependency>
> >
> >
> >
> > but this didn't fix the problem. I have read a few posts about this
> but
> > none have provided the answer. Has anyone solved this?
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Seam
> >
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: tools.jar
Posted by Roman Kournjaev <ko...@gmail.com>.
Hi
I had this problem a few times. Its definitely a jdk problem.
check your mvn -version , verify it takes the right java home.
C:\Documents and Settings\rkournja>mvn -version
Maven version: 2.0.9
Java version: 1.5.0_18
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
C:\Documents and Settings\rkournja>ECHO %JAVA_HOME%
C:\Program Files\Java\jdk1.5.0_18
Roman
On Mon, Jun 29, 2009 at 6:46 PM, McElroy Sean
<Se...@uk.fujitsu.com>wrote:
> Hello,
>
> My JAVA_HOME variable points to: C:\Program Files\Java\jdk1.6.0_06
>
> Regards,
>
> Seam
>
> -----Original Message-----
> From: Roman Kournjaev [mailto:kournjaev@gmail.com]
> Sent: 29 June 2009 16:36
> To: Maven Users List
> Subject: Re: tools.jar
>
> Hi
>
>
> You ll probably will get rid of this error if you run will have the JDK
> ,
> instaead of the JRE in your PATH.
> Check your JAVA_HOME , it should always point to a JDK when working with
> maven.
>
>
> The tools.jar is already inside the jdk in its the lib folder.
>
> Roman
>
> On Mon, Jun 29, 2009 at 6:29 PM, McElroy Sean
> <Se...@uk.fujitsu.com>wrote:
>
> > Hello,
> >
> >
> >
> > I'm getting this error: java.lang.ClassNotFoundException:
> > com.sun.mirror.apt.AnnotationProcessorFactory, when I try to compile a
> > web-service project using jaxws-maven-plugin. I understand that this
> > problem relates to tools.jar. So having read the FAQ on the Maven site
> I
> > added this to my pom:
> >
> >
> >
> > <dependency>
> >
> > <groupId>com.sun</groupId>
> >
> > <artifactId>tools</artifactId>
> >
> > <version>1.6/version>
> >
> > <scope>system</scope>
> >
> > <systemPath>${java.home}/../lib/tools.jar</systemPath>
> >
> > </dependency>
> >
> >
> >
> > but this didn't fix the problem. I have read a few posts about this
> but
> > none have provided the answer. Has anyone solved this?
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Seam
> >
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: tools.jar
Posted by McElroy Sean <Se...@uk.fujitsu.com>.
Hello,
My JAVA_HOME variable points to: C:\Program Files\Java\jdk1.6.0_06
Regards,
Seam
-----Original Message-----
From: Roman Kournjaev [mailto:kournjaev@gmail.com]
Sent: 29 June 2009 16:36
To: Maven Users List
Subject: Re: tools.jar
Hi
You ll probably will get rid of this error if you run will have the JDK
,
instaead of the JRE in your PATH.
Check your JAVA_HOME , it should always point to a JDK when working with
maven.
The tools.jar is already inside the jdk in its the lib folder.
Roman
On Mon, Jun 29, 2009 at 6:29 PM, McElroy Sean
<Se...@uk.fujitsu.com>wrote:
> Hello,
>
>
>
> I'm getting this error: java.lang.ClassNotFoundException:
> com.sun.mirror.apt.AnnotationProcessorFactory, when I try to compile a
> web-service project using jaxws-maven-plugin. I understand that this
> problem relates to tools.jar. So having read the FAQ on the Maven site
I
> added this to my pom:
>
>
>
> <dependency>
>
> <groupId>com.sun</groupId>
>
> <artifactId>tools</artifactId>
>
> <version>1.6/version>
>
> <scope>system</scope>
>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
>
> </dependency>
>
>
>
> but this didn't fix the problem. I have read a few posts about this
but
> none have provided the answer. Has anyone solved this?
>
>
>
> Thanks,
>
>
>
> Seam
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: tools.jar
Posted by Roman Kournjaev <ko...@gmail.com>.
Hi
You ll probably will get rid of this error if you run will have the JDK ,
instaead of the JRE in your PATH.
Check your JAVA_HOME , it should always point to a JDK when working with
maven.
The tools.jar is already inside the jdk in its the lib folder.
Roman
On Mon, Jun 29, 2009 at 6:29 PM, McElroy Sean
<Se...@uk.fujitsu.com>wrote:
> Hello,
>
>
>
> I'm getting this error: java.lang.ClassNotFoundException:
> com.sun.mirror.apt.AnnotationProcessorFactory, when I try to compile a
> web-service project using jaxws-maven-plugin. I understand that this
> problem relates to tools.jar. So having read the FAQ on the Maven site I
> added this to my pom:
>
>
>
> <dependency>
>
> <groupId>com.sun</groupId>
>
> <artifactId>tools</artifactId>
>
> <version>1.6/version>
>
> <scope>system</scope>
>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
>
> </dependency>
>
>
>
> but this didn't fix the problem. I have read a few posts about this but
> none have provided the answer. Has anyone solved this?
>
>
>
> Thanks,
>
>
>
> Seam
>
>
>
>
>
>
RE: tools.jar
Posted by Ilya Kazakevich <ka...@devexperts.com>.
Hello,
Afaik, JAVA HOME should be set to path to JDK, not JRE.
There is no tools.jar in JRE, only in JDK.
Download and install JDK
-----Original Message-----
From: sariram [mailto:seetharaman.43@gmail.com]
Sent: Tuesday, July 14, 2009 2:29 PM
To: users@maven.apache.org
Subject: Re: tools.jar
Hello
I m getting Error:in JAVA HOME ...NOT Found in:Java SDK=c:\progarm
files\java\jre6\lib\tools.jar.....
i want to know abt why tis error..and how i ll rectify tat error....
McElroy Sean wrote:
>
> Hello,
>
>
>
> I'm getting this error: java.lang.ClassNotFoundException:
> com.sun.mirror.apt.AnnotationProcessorFactory, when I try to compile a
> web-service project using jaxws-maven-plugin. I understand that this
> problem relates to tools.jar. So having read the FAQ on the Maven site
> I added this to my pom:
>
>
>
> <dependency>
>
> <groupId>com.sun</groupId>
>
> <artifactId>tools</artifactId>
>
> <version>1.6/version>
>
> <scope>system</scope>
>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
>
> </dependency>
>
>
>
> but this didn't fix the problem. I have read a few posts about this
> but none have provided the answer. Has anyone solved this?
>
>
>
> Thanks,
>
>
>
> Seam
>
>
>
>
>
>
>
--
View this message in context:
http://www.nabble.com/tools.jar-tp24256364p24477023.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: tools.jar
Posted by sariram <se...@gmail.com>.
Hello
I m getting Error:in JAVA HOME ...NOT Found in:Java SDK=c:\progarm
files\java\jre6\lib\tools.jar.....
i want to know abt why tis error..and how i ll rectify tat error....
McElroy Sean wrote:
>
> Hello,
>
>
>
> I'm getting this error: java.lang.ClassNotFoundException:
> com.sun.mirror.apt.AnnotationProcessorFactory, when I try to compile a
> web-service project using jaxws-maven-plugin. I understand that this
> problem relates to tools.jar. So having read the FAQ on the Maven site I
> added this to my pom:
>
>
>
> <dependency>
>
> <groupId>com.sun</groupId>
>
> <artifactId>tools</artifactId>
>
> <version>1.6/version>
>
> <scope>system</scope>
>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
>
> </dependency>
>
>
>
> but this didn't fix the problem. I have read a few posts about this but
> none have provided the answer. Has anyone solved this?
>
>
>
> Thanks,
>
>
>
> Seam
>
>
>
>
>
>
>
--
View this message in context: http://www.nabble.com/tools.jar-tp24256364p24477023.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org