You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Craig McDaniel <cp...@gmail.com> on 2005/09/07 20:33:08 UTC

[m1] Jetty plugin classpath error

I am trying to use the Jetty plugin to deploy and test a webapp.
Unfortunately I get the following error that everyone has seen at some
point in their Java development life:

java.lang.NoClassDefFoundError: sun/tools/javac/Main

I know this is usuall a CLASSPATH problem and can be fixed by adding
tools.jar to the CLASSPATH. However, I'm wondering why this isn't
working out-of-the-box or if maybe I've screwed something up somehow.

My JAVA_HOME env variable is set correctly and JAVA_HOME/lib/tools.jar
does exist. Any ideas?

-- 
Craig McDaniel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [m1] Jetty plugin classpath error

Posted by Arnaud HERITIER <ah...@gmail.com>.
maven plugin:download -DgroupId=maven -DartifactId=maven-jetty-plugin -Dversion=1.2-SNAPSHOT
-Dmaven.repo.remote=http://cvs.apache.org/repository/

Arnaud

> 
> OK, pardon my ignorance. How do I use/get/install the SVN 
> version of the Jetty plugin?
> 
> On 9/7/05, Vincent Massol <vm...@pivolis.com> wrote:
> > 
> > 
> > > -----Original Message-----
> > > From: Craig McDaniel [mailto:cpmcdaniel@gmail.com]
> > > Sent: mercredi 7 septembre 2005 20:33
> > > To: Maven Users List
> > > Subject: [m1] Jetty plugin classpath error
> > >
> > > I am trying to use the Jetty plugin to deploy and test a webapp.
> > > Unfortunately I get the following error that everyone has seen at 
> > > some point in their Java development life:
> > >
> > > java.lang.NoClassDefFoundError: sun/tools/javac/Main
> > >
> > > I know this is usuall a CLASSPATH problem and can be 
> fixed by adding 
> > > tools.jar to the CLASSPATH. However, I'm wondering why this isn't 
> > > working out-of-the-box or if maybe I've screwed something 
> up somehow.
> > >
> > > My JAVA_HOME env variable is set correctly and 
> > > JAVA_HOME/lib/tools.jar does exist. Any ideas?
> > 
> > It's been fixed in SVN.
> > 
> > Thanks
> > -Vincent
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> > 
> 
> 
> --
> Craig McDaniel
> 
> ---------------------------------------------------------------------
> 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: [m1] Jetty plugin classpath error

Posted by Craig McDaniel <cp...@gmail.com>.
OK, pardon my ignorance. How do I use/get/install the SVN version of
the Jetty plugin?

On 9/7/05, Vincent Massol <vm...@pivolis.com> wrote:
> 
> 
> > -----Original Message-----
> > From: Craig McDaniel [mailto:cpmcdaniel@gmail.com]
> > Sent: mercredi 7 septembre 2005 20:33
> > To: Maven Users List
> > Subject: [m1] Jetty plugin classpath error
> >
> > I am trying to use the Jetty plugin to deploy and test a webapp.
> > Unfortunately I get the following error that everyone has seen at some
> > point in their Java development life:
> >
> > java.lang.NoClassDefFoundError: sun/tools/javac/Main
> >
> > I know this is usuall a CLASSPATH problem and can be fixed by adding
> > tools.jar to the CLASSPATH. However, I'm wondering why this isn't
> > working out-of-the-box or if maybe I've screwed something up somehow.
> >
> > My JAVA_HOME env variable is set correctly and JAVA_HOME/lib/tools.jar
> > does exist. Any ideas?
> 
> It's been fixed in SVN.
> 
> Thanks
> -Vincent
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


-- 
Craig McDaniel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [m1] Jetty plugin classpath error

Posted by Vincent Massol <vm...@pivolis.com>.

> -----Original Message-----
> From: Craig McDaniel [mailto:cpmcdaniel@gmail.com]
> Sent: mercredi 7 septembre 2005 20:33
> To: Maven Users List
> Subject: [m1] Jetty plugin classpath error
> 
> I am trying to use the Jetty plugin to deploy and test a webapp.
> Unfortunately I get the following error that everyone has seen at some
> point in their Java development life:
> 
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
> 
> I know this is usuall a CLASSPATH problem and can be fixed by adding
> tools.jar to the CLASSPATH. However, I'm wondering why this isn't
> working out-of-the-box or if maybe I've screwed something up somehow.
> 
> My JAVA_HOME env variable is set correctly and JAVA_HOME/lib/tools.jar
> does exist. Any ideas?

It's been fixed in SVN.

Thanks
-Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org