I\'ve been setting up a 2018 MacBook Pro for Java development. It\'s running Mojave 10.14.1 - just like the older machine I\'m migrating from, an early 2013 MacBook Pro. I insta
We have the same issue when trying to open an inhouse Java-based application in conjunction with Dell D6000 docks using DisplayLink software.
As others have suggested disconnecting the Dock then launching the application works after which you can reconnect the dock and move the application to the other screen.
The other way we have managed to get it to work is with the laptop open making the laptop screen the main display this is done in the system prefs in the display settings and moving the white bar to the laptop screen then opening the application.
I think it has been said before when the main display is one run through DisplayLink it can't detect the display so return a null value, even running most recent drivers (24th Aug 2020) this is still the case.
So its workarounds not solutions if you are in the same boat