B4J Question JavaFX SDK not working properly on JVM (vmWare/VirtualBox)

ThRuST

Well-Known Member
Licensed User
Longtime User
I have waited a long time to post this due to alot of tests regarding this, but here it comes.

Is JavaFX SDK working as expected on the virtual Macs and/or real hardware you have tried?


Used for testing: Windows 7, Windows 10, vmWare v10, 12 and 15. SDK 8 and also 9.0.4.
CPUs: AMD Phenom II 3.4 GHz, Intel Core i7 3.6 GHz (4.7 GHz OC).
macOSX El Capitan, Sierra, High Sierra, Mojave.

Own Test Results: VmWare v15 worked best with Win 10, SDK 9.0.4, i7 9700 on macOSX El Capitan (vmWare image)

Please share your experiences with the community.
Include what specs you tested SDK with or everyone will end up confused.
 
Last edited:

ThRuST

Well-Known Member
Licensed User
Longtime User
@Erel Have you ever been using Vmware or VirtualBox? My experience is that it can be time consuming to get MacOS to run.
I even read that JVM is not fully compatible with hardware because Apple don't want to lose sales!! As they only support Intel CPUs.
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
Here's is a reference to various versions currently available

 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
Granted the above is split between two major architectures, PPC and Intel. I dont even think Java 8 would even run on a PPC Mac, which would be Leopard and before.
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
b4J apps on a mac? Yes and they work fine.

But I have only tried on newer macs, Not older ones (from the PPC Era)
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
I dont have VmWare, I dont have any virtual machines besides my Win7 one. My laptop is also just out of support for Mojave (mid 2011) so no go there. its running High Seirra.
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
I must have tested all versions of vmWare and VirtualBox lol

macOS is a bitch on JVM!!! so don't go there mate haha
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
Well I have not had an issue yet when it comes to using a real mac and high sierra. But, JavaFX relies on the GPU and its accelerations, and that has changed significantly in Mac OS, they switched to the Metal API which they flipped the switch in Mojave, so older machines with older GPUs (like mine) are now shut out.

Also VMs dont emulate or even provide support for GPU acceleration, so its of no surprise.
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
Also TBH, I havent used MacOS in a virtual machine since Snow Leopard. haha. However I may have to get back into VMs so I can run the latest OS to keep up with xcode and build servers for IOS. as I am sure eventually they will kill off High Sierra, which means my mac is pretty much obsolete.
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
There's hardware accelleration in vmWare that works pretty well in MacOSX, thanks to vmWare Tools updates, which is ahead of VirtualBox.

In gereral vmWare is easier to set up and works better. El Capitan seems to be the peak for JavaFX support, then as you mention it gets worse.

There's hacks around that unlocks so it's possible to install macOSX on VmWare. Some even have modifications that makes it work on AMD CPUs!!

Google YouTube and thou shall find a working drive image
 
Upvote 0

chams

Member
Licensed User
Longtime User
Don't work with VirtualBox 6.0.4 / High Sierra (10.13.6) - Java JDK 8 212 on Xeon 3.3 Ghz / 32 Go RAM
At compilation :
2019-04-21 14:15:49.130 java[829:15555] CGLChoosePixelFormat error: 10002
and the app window loading by the b4j-bridge don't shows the buttons and labels.


Left the sample on Win10, right the sample on High Sierra VM

 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
@chams Thanks for sharing your experience. That supports also my own test on High sierra and Mojave but I used vmWare. I believe Xeon was made by Intel which should be supported by Apple. You might confirm if El capitan works with VirtualBox 6.0.4 but that's optional of course. It's a rather time consuming task to set it up but it's fun once it works (like with code)
 
Upvote 0

chams

Member
Licensed User
Longtime User
TADA : Works with VirtualBox 6.0.4 / El Capitan (10.11) - Java JDK 8 212 on Xeon 3.3 Ghz / 32 Go RAM

The button and text appear

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…