How to build 64-bit FX ?

Anthony Petrov anthony.petrov at oracle.com
Mon Mar 24 14:55:25 UTC 2014


Previously I simply did `rm -rf caches`, but this didn't seem to do the 
right job. After a completely fresh clone of a new repo and performing a 
build using 64-bit JDK, I finally got it working.

--
best regards,
Anthony

On 3/21/2014 8:26 PM, Anthony Petrov wrote:
> Thanks, Kevin. The build went fine. However, when starting an app, I get
> the infamous "NoSuchMethodError: notifyInitAccessibility" exception (I'm
> building a fresh 8u20 repo). I tried to specify
> -Djava.library.path=artifacts\sdk\rt\bin but this didn't help. Note that
> the x64 JDK I'm using to run the app has its jfxrt.jar removed.
>
> But(!), I can actually run the app using the (supposed to be) 64-bit FX
> binaries with a 32-bit JDK. And it runs fine in this case. But how this
> could possibly work? And most importantly, how do I get it work with a
> 64-bit JDK?
>
> --
> best regards,
> Anthony
>
> On 3/21/2014 6:46 PM, Kevin Rushforth wrote:
>> If your JDK_HOME points to a 64-bit JDK then you will get a 64-bit FX
>> build. No additional options are needed. You need to do a "gradle clean"
>> as part of your build if you previously built a 32-build in the same
>> repo. Also, if not building webkit or media, make sure you update your
>> stub_runtime to point to 64-bit FX binaries (your "caches" dir if doing
>> a closed build).
>>
>> -- Kevin
>>
>>
>> Anthony Petrov wrote:
>>> Hello,
>>>
>>> I'm on Win7 64 bit system. Regularly I use 32-bit compilers and a
>>> 32-bit JDK, and when building FX by executing the `gradle` command, I
>>> get a 32-bit FX build.
>>>
>>> How do I get a 64-bit FX build on the same system? What additional
>>> software do I need? I suppose I need a 64-bit JDK, right?
>>>
>>> I have VS2010 Professional installed. Do I need to install any
>>> additional development tools/compilers?
>>>
>>> What options/environment variables do I specify on the command line to
>>> run gradle and get a 64-bit FX build?
>>>
>>> --
>>> best regards,
>>> Anthony


More information about the openjfx-dev mailing list