Hi Dirk
> -----Original Message-----
> From: Dirk Olmes [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 10, 2006 2:02 AM
> To: [email protected]
> Subject: Re: Getting started with archiva ... still
>
> Dirk Olmes wrote:
> > Hi,
>
> [... first part deleted to focus on my main stumbling point ...]
>
> > Now I'm trying to start archiva as per "Getting Started" from the
> > generated site. I have unpacked the plexus package, started the
> > bin/plexus.sh and get the following error when I access the
> front page:
> >
> > WARNUNG: /:
> > Unable to find a javac compiler;
> > com.sun.tools.javac.Main is not on the classpath.
> > Perhaps JAVA_HOME does not point to the JDK
> >
> > I have taken a brief look at the plexus.sh and verified that the
> > variable TOOLS_JAR is setup correctly. Now I'm stuck.
>
> How would I proceed from here? What do I have to to in order to make
> plexus/archiva find my tools.jar?
>
> -dirk
>
looking at the plexus.sh I found a source of problem...
<snip>
if [ -z "$JAVA_HOME" ] ; then
if [ -e /etc/gentoo-release ] ; then
JAVA_HOME=`java-config --jre-home`
fi
fi
</snip>
as I only have a windows machine I can not check that part but
you defenitly need JAVA_HOME to be set to the JDK and not the JRE.
The JRE doesn't have the tools.jar in windows...
<snip>
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD=java
fi
fi
</snip>
this may also be a problem depending on the java.sh used
-> maybe '$JAVA_HOME/jre/sh/java' is setting another classpath
as '$JAVA_HOME/jre/sh/java'
HtH
Daniel