B4J Question evolving from Java 8 to openjdk 11

rbirago

Active Member
Licensed User
Longtime User
I have always used standard java environment, using Launch4j to create executable objects. I have seen that in the last year B4j ide has a built-in procedure to create directly exe files and so I have decided to follow this new way. So I have substituted the standard java environment with OpenJdk 11 (mandatory to use the built-in procedure).
Now, when I try to execute the .jar (like I was used) the system replies with this question:
jar execution err.png


but at the same time executing in release mode the application it starts as usual. So, which is the correct path to launch the .jar?
I have tried to point to jdk-11.0.1\bin\javaw.exe or java.exe and also to the old jdk1.8.0_251\bin\java.exe, but it doesn't execute my .jar
thanks
Roberto
 

Attachments

  • jar execution err.png
    jar execution err.png
    12.3 KB · Views: 120

agraham

Expert
Licensed User
Longtime User
The forum search is your friend.

Unlike JDK 8 JDK 11 will not run a jar by double clicking it.


or you can use a batch file as in post #2 of the link above.

or best is probably the integrated packager
 
Upvote 0

rbirago

Active Member
Licensed User
Longtime User
This is the problem: I have generated the exe by the buit-in ide procedure and this is the log error (using run_debug.bat):
exe execution err.png

note: launching the app on-the-fly by ide all is ok!
 
Upvote 0

rbirago

Active Member
Licensed User
Longtime User
...of course you are right! now all it works. Really this new method seems to be easier, but has some tricks: the #packager properties, the set of directories I have to pass with the .exe, the dirapp files I have to copy every time in /bin directory...I was used in other rules and so I have to evolve myself. Thank you for the help!
Roberto
 
Upvote 0
Top