B4J Question [Solved] Java 181 update on Windows 10

jroriz

Active Member
Licensed User
Longtime User
Hi.
After install java 181 update on windows 10, my jar aplication does not work anymore.
After lauch the application, a window pops up and disappears quickly. It seems to be a DOS window, because the background is black.
I installed B4J on the computer, and the program works on the IDE, but the compiled JAR application does not work.
Does anyone help?
 

DonManfred

Expert
Licensed User
Longtime User
open a command window and call the jar from here manually
java -jar yourjar.jar
 
Upvote 0

jroriz

Active Member
Licensed User
Longtime User
Ok, now I've created a batch file with java -jar myapp.jar.
The application opens, but the DOS window remains open, and if that window is closed, my application closes.
Is it possible to start the application through a batch file, but without getting the DOS window open?
 
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
You open CMD so you can see the exception causing your app to crash. It does not matter if it is a UI application, it will work with CMD
 
Upvote 0

jroriz

Active Member
Licensed User
Longtime User
Solved!

JAVAW instead of JAVA.

Javaw starts the application without the console.

The window was the console.
 
Last edited:
Upvote 0
Top