Something like libgdx for business logic

Libgdx has the advantage, that you can just develop the core once and then use it for many plattforms, like Android, iOS, Desktop and Web, with only a few lines of code.
Nowadays also business logic needs to work on desktops as well as on mobile phones/tablets and so on.
For this i wonder, if there is anything like “libgdx for business” or if something like this is just not possible/realistic?

Thanks in advance