You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Graham Leggett <mi...@sharp.fm> on 2018/02/26 14:01:50 UTC

httpd docs: -Xbootclasspath/p is no longer a supported option.

Hi all,

I am getting the following when I build the httpd docs:

Little-Net:build minfrin$ ./build.sh 
-Xbootclasspath/p is no longer a supported option.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I believe -Xbootclasspath/p has been removed in java9 - can anyone confirm what this option was supposed to do in our docs build?

This works around the problem for me:

Index: build.sh
===================================================================
--- build.sh	(revision 1825371)
+++ build.sh	(working copy)
@@ -137,8 +137,8 @@
 fi
 
 if [ -n "$CYGHOME" ]; then
-    exec "$JAVACMD" $ANT_OPTS -Xbootclasspath/p:"$LOCALCLASSPATH" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" -Dcygwin.user.home="$CYGHOME" org.apache.tools.ant.Main $ANT_ARGS "$@"
+    exec "$JAVACMD" $ANT_OPTS -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" -Dcygwin.user.home="$CYGHOME" org.apache.tools.ant.Main $ANT_ARGS "$@"
 else
-    exec "$JAVACMD" $ANT_OPTS -Xbootclasspath/p:"$LOCALCLASSPATH" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" org.apache.tools.ant.Main $ANT_ARGS "$@"
+    exec "$JAVACMD" $ANT_OPTS -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" org.apache.tools.ant.Main $ANT_ARGS "$@"
 fi
 

Regards,
Graham
—


Re: httpd docs: -Xbootclasspath/p is no longer a supported option.

Posted by Eric Covener <co...@gmail.com>.
On Mon, Feb 26, 2018 at 9:01 AM, Graham Leggett <mi...@sharp.fm> wrote:
> Hi all,
>
> I am getting the following when I build the httpd docs:
>
> Little-Net:build minfrin$ ./build.sh
> -Xbootclasspath/p is no longer a supported option.
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
>
> I believe -Xbootclasspath/p has been removed in java9 - can anyone confirm what this option was supposed to do in our docs build?
>
> This works around the problem for me:
>
> Index: build.sh
> ===================================================================
> --- build.sh    (revision 1825371)
> +++ build.sh    (working copy)
> @@ -137,8 +137,8 @@
>  fi
>
>  if [ -n "$CYGHOME" ]; then
> -    exec "$JAVACMD" $ANT_OPTS -Xbootclasspath/p:"$LOCALCLASSPATH" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" -Dcygwin.user.home="$CYGHOME" org.apache.tools.ant.Main $ANT_ARGS "$@"
> +    exec "$JAVACMD" $ANT_OPTS -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" -Dcygwin.user.home="$CYGHOME" org.apache.tools.ant.Main $ANT_ARGS "$@"
>  else
> -    exec "$JAVACMD" $ANT_OPTS -Xbootclasspath/p:"$LOCALCLASSPATH" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" org.apache.tools.ant.Main $ANT_ARGS "$@"
> +    exec "$JAVACMD" $ANT_OPTS -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" org.apache.tools.ant.Main $ANT_ARGS "$@"
>  fi
>

My assumption is to use our bundled xerces over a possible JDK-bundled
one.  I don't know if this is just for consistency or if it was
actually needed.

-- 
Eric Covener
covener@gmail.com