I think that if you are going to do compiles, etc. that you NEED to set JAVA_HOME to point to a JDK tree, not a JRE tree. In your case, JAVA_HOME should be "C:\Program Files\Java\jdk1.5.0_04".
-----Original Message----- From: Mark Hobson [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 17:15 To: Maven Developers List Subject: Re: New bootstrap on 1.5 It's looking at "C:\Program Files\Java\jre1.5.0_04\..\lib\tools.jar", which obviously doesn't exist. I'm using the standard Java5 installation of: C:\Program Files\Java |_ jdk1.5.0_04 |_ lib/tools.jar |_ jre1.5.0_04 (== $JAVA_HOME) Seems like $JAVA_HOME/../lib/tools.jar is not a reliable expression - what do the plexus compiler components use? Mark On 21/11/05, Brett Porter <[EMAIL PROTECTED]> wrote: > Can you drop a statement in JavacCompiler.java to echo the path to > tools.jar it is trying to use, and check it exists for you? > > it looks in ${java.home}/../lib/tools.jar, and ${java.home} is usually > the location of the JRE used ($JAVA_HOME/jre) > > Cheers, > Brett > > Mark Hobson wrote: > > Hi there, > > > > Just trying the new bootstrap on JDK 1.5.0_04 and getting: > > > > [EMAIL PROTECTED] components]$ ./bootstrap.sh > > Note: Some input files use unchecked or unsafe operations. > > Note: Recompile with -Xlint:unchecked for details. > > Using settings from C:\Documents and Settings\mark\.m2\settings.xml > > You SHOULD have a ~/.m2/settings.xml file and must contain at least > > the following information: > > > > <settings> > > <localRepository>/path/to/your/repository</localRepository> > > </settings> > > > > Alternatively, you can specify -Dmaven.repo.local=/path/to/m2/repository > > > > HOWEVER, since you did not specify a repository path, maven will use: > > C:\Documents and Settings\mark\.m2\repository to store artifacts > > locally. > > Using the following for your local repository: C:\Documents and > > Settings\mark\.m2\repository > > Using the following for your remote repository: > > [http://repo1.maven.org/maven2, > > http://snapshots.maven.codehaus.org/maven2/] > > Analysing dependencies ... > > > > > > Building project in c:\maven\components\bootstrap\bootstrap-mini > > ------------------------------------------------------------------ > > Cleaning c:\maven\components\bootstrap\bootstrap-mini\target... > > Compiling sources ... > > Compiling 32 source files to > > c:\maven\components\bootstrap\bootstrap-mini\target\classes > > Exception in thread "main" java.lang.ClassNotFoundException: > > com.sun.tools.javac.Main > > at java.net.URLClassLoader$1.run(Unknown Source) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(Unknown Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > at org.apache.maven.bootstrap.util.IsolatedClassLoader.loadClass(IsolatedCl assLoader.java:62) > > at org.apache.maven.bootstrap.compile.JavacCompiler.compile(JavacCompiler.j ava:140) > > at org.apache.maven.bootstrap.Bootstrap.compile(Bootstrap.java:633) > > at org.apache.maven.bootstrap.Bootstrap.buildProject(Bootstrap.java:359) > > at org.apache.maven.bootstrap.Bootstrap.run(Bootstrap.java:140) > > at org.apache.maven.bootstrap.Bootstrap.main(Bootstrap.java:128) > > > > Is this a known issue before I dig deeper? $JAVA_HOME = > > C:\Progra~1\Java\jdk1.5.0_04 > > > > Cheers, > > > > Mark > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]