B4J Question UI Application in lubuntu

Pedro Caldeira

Active Member
Licensed User
Longtime User
Hello All,
I wrote a simple application with a few screens just to test B4J in linux.
I am using a system with ludunti 17.00 installed
when i execute java -j testapp.jar or java -j, for that matter, in the command line I get:
Error: Could not creat the Java Virtual Machine
Error: A Fatal exception has ocurred. The Program will now exit.

any ideias ?
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Is this the full error message?

Have you tried to run a non-ui application?

You cannot run a UI application from the terminal.

You can actually run UI applications in command line, but OpenJDK (the one installed easier in ubuntu flavors) doesnt have JavaFX, you have to install it separately (or install the Oracle JDK)
 
Upvote 0

Pedro Caldeira

Active Member
Licensed User
Longtime User
its solved.
I had to install opemjfx. that did the trick. Thanks Enrique.
I had replaced the lubuntu by a ubuntu distro, and now i am going to try it with lubuntu also

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