Build error with javac Main not being found when building java.transaction module on Mac OS X
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
> 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
> 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: ***
> Error 1
> make: *** [java.transaction-java] Error 2
> make: *** 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?
More information about the build-dev