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

Erik Joelsson erik.joelsson at oracle.com
Fri Feb 6 11:42:10 UTC 2015


This looks like a mismatch between the modules make finds and the 
dependencies calculated between them. Make sure all your repos are up to 
date and try dist-clean and rerun configure.

/Erik

On 2015-02-06 12:32, Martijn Verburg wrote:
> Hi all,
>
> Apologies if this has already been reported before!
>
> Build from HEAD (jdk9) today I get the following error running make clean
> images:
>
> make clean images
> Cleaning hotspot build artifacts ... done
> Cleaning jdk build artifacts ... done
> Cleaning bootcycle-build build artifacts ... done
> Cleaning test build artifacts ... done
> Cleaning buildtools build artifacts ... done
> Cleaning support build artifacts ... done
> Cleaning images build artifacts ... done
> Cleaning make-support build artifacts ... done
> Cleaned all build artifacts.
> Building OpenJDK for target 'clean images' in configuration
> 'macosx-x86_64-normal-server-release'
>
> Compiling 5 files for BUILD_GENMODULESLIST
> Compiling 8 files for BUILD_TOOLS_LANGTOOLS
> Compiling 3 files for java.transaction
> Error: Could not find or load main class com.sun.tools.javac.Main
> make[3]: ***
> [/Users/karianna/Documents/workspace/AdoptOpenJDK_projects/jdk9/build/macosx-x86_64-normal-server-release/jdk/modules/java.transaction/_the.java.transaction_batch]
> Error 1
> make[2]: *** [java.transaction-java] Error 2
> make[2]: *** Waiting for unfinished jobs....
>
> ====================================================
>
> I have the following configuration and have also tried using JDK 9 b44 as
> the boot JDK :
>
> ====================================================
> The existing configuration has been successfully updated in
> /Users/karianna/Documents/workspace/AdoptOpenJDK_projects/jdk9/build/macosx-x86_64-normal-server-release
> using configure arguments
> '--with-boot-jdk=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/'.
>
> Configuration summary:
> * Debug level:    release
> * HS debug level: product
> * JDK variant:    normal
> * JVM variants:   server
> * OpenJDK target: OS: macosx, CPU architecture: x86, address length: 64
>
> Tools summary:
> * Boot JDK:       java version "1.8.0_31" Java(TM) SE Runtime Environment
> (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07,
> mixed mode)  (at
> /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home)
> * Toolchain:      clang (clang/LLVM)
> * C Compiler:     Version Apple LLVM version 6.0 (clang-600.0.56) (based on
> LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix (at
> /usr/bin/clang)
> * C++ Compiler:   Version Apple LLVM version 6.0 (clang-600.0.56) (based on
> LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix (at
> /usr/bin/clang++)
>
> Build performance summary:
> * Cores to use:   4
> * Memory limit:   16384 MB
>
> Cheers,
> Martijn



More information about the jdk9-dev mailing list