dev@woodstock.java.net

Re: compiling woodstock

From: richard ratta <Richard.Ratta_at_Sun.COM>
Date: Thu, 20 Nov 2008 01:09:59 -0500

Sounds like the VM you are using doesn't support that compile option,
which is used
to generate 1.5 class files.

If you don't care about this, remove the option.

Also this step is only done to verify that the JSP files compile. This
step can be removed.
You will probably have to go to the ant build file (probably the
"example" directory)
and comment out the compile of the JSP files.
If it is the netbeans build file that is executing the task there are
usually properties you
can set to prevent the build from compiling the JSP files.

-rick

robert.hook_at_salmat.com.au wrote:

>I have attempted to build woodstock both from the command line via ant, and via the Netbeans projects using Netbeans 6.1, and in
>both cases failed. This may reflect problems with 4.3 build 7, so I will attempt the same with 4.3 build 6. I am trying to build
>against both a 1.5 JDK and a 1.6 JDK. Yes, I've followed the instructions at <https://woodstock.dev.java.net/BuildYourself.htm>.
>
>In order to build against the 1.5 JDK (this is under Ubuntu, by the way, in case "build once, run anywhere" is no longer true) by
>doing the following from a little shell script
>
> export JAVA_HOME=/var/opt/java/jdk1.5.0_16
> export PATH=$JAVA_HOME/bin:$PATH
> ant -f master/build.xml
>
>to build against the 1.6 JDK I just ran ant from the command line, with JAVA_HOME pointing at my 1.6 JDK. In both cases the ant
>build falls over toward the end:
>
> compile-jsps:
> [mkdir] Created dir: /home/robert/Projects/woodstock/example/build/generated/src
> [java] org.apache.jasper.JasperException: Unrecognized option: -compilerSourceVM 1.5. Use -help for help.
>
>which is the same problem that arises with that project when attempting to build from Netbeans
>
>suggestions? Other than doing what I'm about to do, which is chop the "example" project out of the master build and see if
>everything else will build?
>
>