Build error with javac Main not being found when building java.transaction module on Mac OS X
Alan Bateman
Alan.Bateman at oracle.com
Fri Feb 6 11:43:02 UTC 2015
On 06/02/2015 11: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 wonder if this is residual files left behind from a previous build. We
did some refactoring a few weeks ago to create the java.transaction
module and that required moving code between the corba and jdk repo.
Can you blow away your build directory and configure && make again?
-Alan
More information about the jdk9-dev
mailing list