thanks Simon, javac in the path so? ...anyway. I exported JAVA_HOME and viola that did the trick very simply. I thought It had to be in the pom.xml file.
thanks again On Thu, 2008-03-13 at 21:42 +0100, simon wrote: > On Fri, 2008-03-14 at 21:02 -0800, BWS wrote: > > hello, > > > > I'm going through a cocoon tutorial but this is a maven question. > > http://cocoon.apache.org/2.2/1159_1_1.html > > > > jdk1.6 and Maven 2 / fedora8 > > > > I've read through a ton of issues with this error. > > "Failure executing javac, but could not parse the error:" > > when using jdk 1.4 and switching to 1.5 but nothing about > > my situation. > > > > I'm trying to compile a cocoon app. I'm in "myBlock1" and run: > > mvn jetty:run > > or > > mvn compile > > > > it can't find javac because it looks like it's looking in ... > > /usr/lib/jvm/java which points to a simlink-> /etc/alternatives/java_sdk > > > > I had to use this to configure java on this os. > > SO MY QUESTION IS :: > > > > Where in the POM.XML can I include a path to "/usr/java/jdk1.6.0_02" > > /etc/alternatives/java_sdk is pointing there but that's the only thing I > > can think of that is screwing this up so I can compile it. > > You can't set a path to the JDK in the pom.xml. The pom.xml is what gets > published to other people (via the repository), so having paths to jdks > on your machine would not be useful. > > Try > export JAVA_HOME=/path/to/your/jdk > mvn jetty:run > > Regards, > Simon > > > --------------------------------------------------------------------- > 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]