OpenJFX 1.8 build issues

Anthony Petrov anthony.petrov at oracle.com
Wed Aug 21 00:29:51 PDT 2013


On 08/21/2013 10:36 AM, Anthony Petrov wrote:
> Secondly, you're building the JDK in a somewhat strange way. It's much
> easier than that. Just execute the following commands in your Cygwin
> command prompt:
>
> $ hg clone http://hg.openjdk.java.net/jdk8/awt myjdk8
> $ cd myjdk8
> $ bash ./get_source.sh
> $ cd ..

A small correction: you don't need this "cd ..". You want to stay in the 
myjdk8 directory when running configure/make.

--
best regards,
Anthony

> $ bash ./configure
> $ make
>
> And that's it. Provided you have all the necessary build tools installed
> on your system, of course. In most cases you don't need to specify any
> options for the configure script (other than 32 vs 64 bits in case you
> want to build 32-bit JDK on a 64-bit box). You can find a complete
> "how-to" document on building OpenJDK at:
>
> http://hg.openjdk.java.net/jdk8/build/raw-file/tip/README-builds.html
>
> Please let me know if you still have any issues.
>
> --
> best regards,
> Anthony
>
> On 08/21/2013 08:54 AM, K, Dhevendran (MSDU) wrote:
>> Hi Anthony
>> Thanks a lot for your answer.
>> I also compiled OpenJDK 1.8 source as part of this exercise
>> independently . I did the following to compile OpenJDK 1.8
>>
>>  1. Download OpenJDK 1.8 source and its dependent source
>>
>>   * OpenJDK 1.8 root-source   from
>>     _http://hg.openjdk.java.net/jdk8/jdk8_ àDone
>>   * OpenJDK 1.8 Lang tools Source from
>>     _http://hg.openjdk.java.net/jdk8/tl/langtools_ àDone
>>   * Hotspot 1.8
>>       Source
>> from_http://hg.openjdk.java.net/jdk8/jdk8/hotspot/rev/e437668ced9d_ àDone
>>   * Corba 1.8  Source  from_http://hg.openjdk.java.net/jdk8/jdk8/corba_
>>     àDone
>>   * Jaxp 1.8  Source  from_http://hg.openjdk.java.net/jdk8/jdk8/jaxp_
>> àDone
>>   * Jaxws 1.8 source from _http://hg.openjdk.java.net/jdk8/jdk8/jaxws_
>> àDone
>>   * JDK 1.8 source from _http://hg.openjdk.java.net/jdk8/jdk8/jdk_ àDone
>>
>>  2. JDK 1.8 Build environment is created after installing following on
>>     top of *Step-2 *èBuild environment for JKD 1.8 compilation is not
>>     ready yet as we are not able to find Hotspot the source
>>
>>   * */GnuWin32/* is installed
>>
>>  3. Building JDK
>>
>>   * */Execute the configure for all the all the add-on packages ( such
>>     as Corba ,Hotspot … )/*
>>
>>   *    ./configure
>>     --with-override-langtools=../langtools/langtools-4300c2f5fb1b
>>     --with-override-hotspot=../hotspot/hotspot-e437668ced9d
>>     --with-override-corba=../corba/corba-d411c60a8c2f
>>     --with-override-jaxp=../jaxp/jaxp-a22fe9bd01e6
>>     --with-override-jaxws=../jaxws/jaxws-42211ab0ab1c
>>     --with-override-jdk=../jdk/jdk-f1d8d15bfcb5 > err.txt 2>&1
>>
>>   * */Execute build /*àThis compilation fails with the following error
>>
>>   * Make clean all
>>
>> ## Starting jdk
>> make[2]: *** No rule to make target
>> `/cygdrive/c/dheva/JavaFX/software/OpenJDK/jdk8-ceefd94ef326/build/windows-x86_64-normal-server-release/corba/dist/lib/classes.jar',
>>
>> needed by
>> `/cygdrive/c/dheva/JavaFX/software/OpenJDK/jdk8-ceefd94ef326/build/windows-x86_64-normal-server-release/jdk/classes/_the.CORBA.classes.imported'.
>>
>> Stop.
>> make[1]: *** [import-only] Error 2
>> make: *** [jdk-only] Error 2
>> At this point, I have few questions
>>
>>   * I am not able to compile OpenJDK 1.8 without the “The optional
>>     Packages”  [i.e. Jaxws,Jaxp,Corba,Langtools and JDK ].
>>   * In the attempt of compilation of these packages , Class not found
>>     error is thrown pointing the respective source folders
>>
>> *Is there any place where I can get more stable OpenJDK 1.8 **(with
>> JavaFX 1.8 ) ??*
>> Awaiting for your response
>> Thanks in Advance
>> With Warm Regards
>> Dhevendran K
>> -----Original Message-----
>> From: Anthony Petrov [mailto:anthony.petrov at oracle.com]
>> Sent: Tuesday, August 20, 2013 8:26 PM
>> To: K, Dhevendran (MSDU)
>> Cc: openjfx-dev at openjdk.java.net; Thomas, Binoy Samuel (MSDU); Jolapara,
>> Vikram Dhirajlal (MSDU)
>> Subject: Re: OpenJFX 1.8 build issues
>> Hi Dhevendran,
>> This is a mismatch of sources between JDK and FX. Try either cloning a
>> fresh copy of the FX repo (it's best to always clone both FX and JDK at
>> the same time, actually), or building with an older JDK build.
>> --
>> best regards,
>> Anthony
>> On 08/20/2013 06:26 PM, K, Dhevendran (MSDU) wrote:
>>> Hi
>>>
>>> I am facing some issue while building OpenJFX 1.8. The link
>>> https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX  is
>>> followed to build  on windows.  The following steps are perfumed
>>>
>>>
>>> 1.       Download the source from
>>> :http://hg.openjdk.java.net/openjfx/8/graphics/rt     --> Done
>>>
>>> o   The OpenJFX Code is change verify frequently at this site
>>>
>>>
>>>
>>> 2.       Build environment for OpenJFX is created after doing the
>>> following installation ( This is the as per the doc ) --> Done
>>>
>>> o   Cygwin is installed
>>>
>>> o   DirectX SDK June 2010 is installed
>>>
>>> o   Microsoft Visual Studio 10  is installed
>>>
>>> o    Gradle
>>> v1.4<http://services.gradle.org/distributions/gradle-1.4-all.zip> is
>>> installed
>>>
>>>
>>>
>>> 3.       Building with Oracle JDK 1.8 binary distribution     ==>
>>> Build went through with some failure with the following message .
>>> However, the jfxrt.jar is created !!
>>>
>>>
>>> ======================================================================
>>> ======================
>>> :swing:compileJava
>>> [ant:javac]
>>> C:\dheva\JavaFX\software\OpenJavaFX_SRC\rt-3268003fe9c0\rt-3268003fe9c0\modules\swing\src\main\java\javafx\embed\swing\SwingNode.java:496:
>>> error: SwingNode.SwingNodeContent is not abstract and does not
>>> override abstract method minimumSizeChanged(int,int)  in
>>> LightweightContent
>>> [ant:javac]     private class SwingNodeContent implements
>>> LightweightContent {
>>> [ant:javac]             ^
>>> [ant:javac] Note:
>>> C:\dheva\JavaFX\software\OpenJavaFX_SRC\rt-3268003fe9c0\rt-3268003fe9c0\modules\swing\src\main\java\javafx\embed\swing\SwingNode.java
>>> uses or overrides a deprecated API.
>>> [ant:javac] Note: Recompile with -Xlint:deprecation for details.
>>> [ant:javac] 1 error
>>> :swing:compileJava FAILED
>>>
>>> FAILURE: Build failed with an exception.
>>>
>>> * What went wrong:
>>> Execution failed for task ':swing:compileJava'.
>>>> Compile failed; see the compiler error output for details.
>>>
>>> * Try:
>>> Run with --stacktrace option to get the stack trace. Run with --info
>>> or --debug option to get more log output.
>>>
>>> BUILD FAILED
>>> ======================================================================
>>> ======================
>>>
>>> Please let me know whether I am doing some fundamental mistake. Please
>>> help me
>>>
>>>
>>> Thanks in Advanve
>>>
>>> With Warm Regards,
>>> Dhevendran K
>>>
>>>


More information about the openjfx-dev mailing list