B4J Question my jar file does not work

electro179

Active Member
Licensed User
Longtime User
It's strange
I runned the command : java -jar tt.jar => It works
after i runned tt.jar directly => it works

thank you for your help
 
Upvote 0

magoandroid

Member
Licensed User
Longtime User
Hi, I checked your application and I found the error to be in a port not being released.
If you first run the application outside the IDE, using the default JRE, it will work, but when you close the application, the actual java process is still opened, so when you relaunch the application, it will fail when trying to bind the port.
Probably it works in the IDE because when you stop the execution of the application it is killing the JRE process.
Ensuring to release any opened port when the application process quits should solve the problem.

MAgo
 
Upvote 0
Top