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 15:39:24 UTC 2015


Hi Erik,

Thanks for the quick response! I ran:

make dist-clean
bash configure
make clean images

Slightly different message this time, no error for missing javac.Main, but
a warning on missing interim_langtools.jar (could be unrelated to the real
issue).  Will also try Alan's suggestion next.

========

Compiling 5 files for BUILD_GENMODULESLIST
Compiling 8 files for BUILD_TOOLS_LANGTOOLS
Compiling 3 files for java.transaction
warning: [path] bad path element "/Users/karianna/Documents/workspace/
AdoptOpenJDK_projects/jdk9/build/macosx-x86_64-normal-server-release/
buildtools/interim_langtools.jar": no such file or directory
error: warnings found and -Werror specified
1 error
1 warning
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....
warning: [options] bootstrap class path not set in conjunction with -source
1.6
...

Cheers,
Martijn

On 6 February 2015 at 11:42, Erik Joelsson <erik.joelsson at oracle.com> wrote:

> 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