Build error with javac Main not being found when building java.transaction module on Mac OS X

Martijn Verburg martijnverburg at gmail.com
Fri Feb 6 16:46:31 UTC 2015


Hi Andrew,

Thanks, that was dense of me not to do that first.

Using debug output I discover that there are more than just one javac
involved, one from interim_langtools.jar

========

...
SetupJavaCompiler(BOOT_JAVAC)
 [2] JAVAC :=
/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/javac
 [3] FLAGS := -XDignore.symbol.file=true -g -Xlint:all,-deprecation -Werror
...
...
SetupJavaCompiler(GENERATE_USINGJDKBYTECODE)
 [2] JVM :=
/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java
-XX:+UseSerialGC -Xms32M -Xmx512M
 [3] JAVAC :=
"-Xbootclasspath/p:/Users/karianna/Documents/workspace/AdoptOpenJDK_projects/jdk9/build/macosx-x86_64-normal-server-release/buildtools/interim_langtools.jar"
-cp
/Users/karianna/Documents/workspace/AdoptOpenJDK_projects/jdk9/build/macosx-x86_64-normal-server-release/buildtools/interim_langtools.jar
com.sun.tools.javac.Main
 [4] FLAGS := -bootclasspath
":/Users/karianna/Documents/workspace/AdoptOpenJDK_projects/jdk9/build/macosx-x86_64-normal-server-release/jdk/modules/java.transaction"
-Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally
 [5] SERVER_DIR :=
 [6] SERVER_JVM :=
/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java
-d64 -Xms512M -Xmx2048M
...

==========

/Users/karianna/Documents/workspace/AdoptOpenJDK_projects/jdk9/build/macosx-x86_64-normal-server-release/buildtools/interim_langtools.jar
does not exist!  So it's not being built correctly or moved to the right
place.

I'm not seeing any other clues (even at trace) that indicates why
interim_langtools.jar has not been built....




Cheers,
Martijn

On 6 February 2015 at 16:24, Andrew Haley <aph at redhat.com> wrote:

> On 02/06/2015 04:20 PM, Martijn Verburg wrote:
> > Is there a way of printing out the absolute path to the javac it might be
> > trying to execute?  I wonder if it goes looking elsewhere during the
> > build...
>
> Are you not building with LOG=debug ?
>
> Andrew.
>
>


More information about the jdk9-dev mailing list