How to build 64-bit FX ?

Kevin Rushforth kevin.rushforth at oracle.com
Mon Mar 24 20:22:18 UTC 2014


Good to know. Thanks.

-- Kevin


Tony Anecito wrote:
> Hi Kevin,
>  
> I am doing a swing-javafx app and have been able to run on 64-bit 
> OpenJDK and Windows Java. The only thing to watch out for is any 
> native libraries. Those of course have to be 64-bit.
>  
> Regards,
> -Tony
>
>
> On Monday, March 24, 2014 9:04 AM, Kevin Rushforth 
> <kevin.rushforth at oracle.com> wrote:
> Good to hear that you can build OK now.
>
> -- Kevin
>
>
> Anthony Petrov wrote:
> > 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